Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10800

Port does not display correctly in the UI if property substitution is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: OpenIDM 6.0.0, 6.5.0
    • Fix Version/s: 6.5.0
    • Component/s: Module - Web UI
    • Environment:
      6.0.0-RC5 and 6.5.0-SNAPSHOT build of 2018-04-26, rev #096d913
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      OpenIDM Sprint 6.5-2

      Description

      When setting up the Elasticsearch audit handler by editing conf/audit.json before IDM is started, if the port is set to an integer, it is not shown in the UI. If it is set to a property substitution, only an & is shown in the UI.

      In both cases, as soon as openidm-admin logs into IDM, the following error is displayed in the console, which appears to be related:

      garylsmac:openidm garyl$ ./startup.sh -p samples/getting-started
      Executing ./startup.sh...
      Using OPENIDM_HOME:   /Users/garyl/sandbox/pyforge/results/latest/idm-setup/IDM_1/openidm
      Using PROJECT_HOME:   /Users/garyl/sandbox/pyforge/results/latest/idm-setup/IDM_1/openidm/samples/getting-started
      Using OPENIDM_OPTS:   -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/Users/garyl/sandbox/pyforge/results/latest/idm-setup/IDM_1/openidm/samples/getting-started/conf/logging.properties
      -> OpenIDM version "6.5.0-SNAPSHOT" (build: 20180426193847, revision: 096d913) jenkins-OpenIDM-build-master-158
      OpenIDM ready
      Apr 26, 2018 8:54:22 PM org.forgerock.audit.AuditServiceImpl lambda$publishEventToHandlers$0
      WARNING: Failure in publishing audit event to access : Elasticsearch response (audit/access/966a029a-9db0-4098-8bb9-5378bbb3d18b-940): {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [response.detail]"}],"type":"mapper_parsing_exception","reason":"failed to parse [response.detail]","caused_by":{"type":"illegal_argument_exception","reason":"unknown property [code]"}},"status":400}
      Apr 26, 2018 8:54:22 PM org.forgerock.openidm.audit.filter.AuditFilter lambda$logAuditAccessEntry$9
      SEVERE: Failed to log audit access entry
      org.forgerock.json.resource.BadRequestException: Elasticsearch response (audit/access/966a029a-9db0-4098-8bb9-5378bbb3d18b-940): {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [response.detail]"}],"type":"mapper_parsing_exception","reason":"failed to parse [response.detail]","caused_by":{"type":"illegal_argument_exception","reason":"unknown property [code]"}},"status":400}
      	at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:213)
      	at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:181)
      	at org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandler.resourceException(ElasticsearchAuditEventHandler.java:476)
      	at org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandler.lambda$publishSingleEvent$2(ElasticsearchAuditEventHandler.java:298)
      	at org.forgerock.util.CloseSilentlyFunction.apply(CloseSilentlyFunction.java:53)
      	at org.forgerock.util.CloseSilentlyFunction.apply(CloseSilentlyFunction.java:29)
      	at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      	at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      	at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      	at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      	at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      	at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      	at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      	at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      	at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      	at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      	at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      	at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      	at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      	at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      	at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      	at org.forgerock.http.apache.async.AsyncResponseHttpClient$EntityCompletionPromiseResponseConsumer.responseCompleted(AsyncResponseHttpClient.java:146)
      	at org.apache.http.impl.nio.client.MainClientExec.responseCompleted(MainClientExec.java:383)
      	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:168)
      	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:436)
      	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:326)
      	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
      	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
      	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
      	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
      	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
      	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
      	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
      	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
      	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
      	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              jason Jason Lemay
              Reporter:
              GErickson Garyl Erickson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: