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

WARNING is observed during upgrade process from 6.0.0 to 6.0.0.1 (full bits)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0.1
    • Fix Version/s: 6.0.0.2
    • Component/s: _Update

      Description

      Steps to reproduce:

      1. Install OpenIDM 6.0.0 with JDBC repo (tested with MySQL)
      2. Upgrade to OpenIDM 6.0.0.1 (full bits)

      Expected result: Upgrade is successfully completed without warning.

      *Actual result:*Upgrade is completed, but warning is observed in log of OpenIDM.

      Nevertheless it looks like OpenIDM is working correctly after restart, but this warning could be disconcerting for customers.

      Stacktrace from OpenIDM:

       

      ./startup.sh 
      /usr/bin/java
      Executing ./startup.sh...
      Using OPENIDM_HOME: /home/kuba/Documents/idm6001/fullBits/update/openidm
      Using PROJECT_HOME: /home/kuba/Documents/idm6001/fullBits/update/openidm
      Using OPENIDM_OPTS: -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/home/kuba/Documents/idm6001/fullBits/update/openidm/conf/logging.properties
      -> OpenIDM version "6.0.0" (build: 20180503161550, revision: 355840d) jenkins-openidm-release-sustaining%2F6.0.x-16
      OpenIDM ready
      OpenIDM ready
      OpenIDM version "6.0.0" (build: 20180503161550, revision: 355840d) jenkins-openidm-release-sustaining%2F6.0.x-16
      Aug 23, 2018 6:25:20 PM org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread applyConfigPatch
      WARNING: Failed to apply patch '{ "operation": "transform", "field": "/objects", "value": { "script": { "type": "text/javascript", "source": "require('managedPatchHelper').remove(content, 'user', 'actions.resetPassword')" } } }' in conf/managed.json.patch
      org.forgerock.openidm.maintenance.upgrade.UpdateException: Patch request failed
      at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.patchConfig(UpdateManagerImpl.java:1420)
      at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.applyConfigPatch(UpdateManagerImpl.java:1203)
      at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.run(UpdateManagerImpl.java:1069)
      Caused by: org.forgerock.json.resource.BadRequestException: Failed to eval script { "type": "text/javascript", "source": "require('managedPatchHelper').remove(content, 'user', 'actions.resetPassword')" }
      at org.forgerock.openidm.script.transform.ScriptedPatchValueTransformerFactory$1.evalScript(ScriptedPatchValueTransformerFactory.java:82)
      at org.forgerock.openidm.patch.ScriptedPatchValueTransformer.getTransformedValue(ScriptedPatchValueTransformer.java:26)
      at org.forgerock.openidm.patch.JsonValuePatch.transform(JsonValuePatch.java:158)
      at org.forgerock.openidm.patch.JsonValuePatch.apply(JsonValuePatch.java:218)
      at org.forgerock.openidm.config.manage.ConfigObjectService.patch(ConfigObjectService.java:618)
      at org.forgerock.openidm.config.manage.ConfigObjectService.handlePatch(ConfigObjectService.java:575)
      at org.forgerock.json.resource.Router.handlePatch(Router.java:292)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:85)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:74)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:74)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:74)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.openidm.audit.filter.AuditFilter.lambda$filterPatch$3(AuditFilter.java:131)
      at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:169)
      at org.forgerock.openidm.audit.filter.AuditFilter.filterPatch(AuditFilter.java:131)
      at org.forgerock.openidm.filter.MutableFilterDecorator.filterPatch(MutableFilterDecorator.java:84)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:72)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.lambda$filterPatch$3(ServletConnectionFactory.java:407)
      at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.handleRequestWithLogging(ServletConnectionFactory.java:446)
      at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.filterPatch(ServletConnectionFactory.java:407)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:74)
      at org.forgerock.openidm.filter.MutableFilterDecorator.filterPatch(MutableFilterDecorator.java:84)
      at org.forgerock.openidm.filter.MutableFilterDecorator.filterPatch(MutableFilterDecorator.java:84)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:74)
      at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:83)
      at org.forgerock.json.resource.FilterChain.handlePatch(FilterChain.java:240)
      at org.forgerock.json.resource.InternalConnection.patchAsync(InternalConnection.java:66)
      at org.forgerock.json.resource.AbstractAsynchronousConnection.patch(AbstractAsynchronousConnection.java:62)
      at org.forgerock.json.resource.AbstractConnectionWrapper.patch(AbstractConnectionWrapper.java:146)
      at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.patch(ServletConnectionFactory.java:338)
      at org.forgerock.json.resource.AbstractConnectionWrapper.patch(AbstractConnectionWrapper.java:146)
      at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.patchConfig(UpdateManagerImpl.java:1418)
      ... 2 more
      
      OpenIDM ready
      OpenIDM ready
      OpenIDM ready
      
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.offutt Mark Offutt [X] (Inactive)
                Reporter:
                jakub.janoska Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: