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

Update from 4.5 to 5.0 with MySQL as repo fails when processing repo.orientdb.json.patch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 5.0.0
    • Fix Version/s: OpenIDM 5.0.0
    • Component/s: _Update
    • Labels:
      None
    • Environment:
      OpenIDM version "5.0.0-SNAPSHOT" (revision: 0421867) using MySQL repo

      Description

      Steps to reproduce

      • install OpenIDM 4.5.0 with MySQL as a repo and start it
      • copy OpenIDM 5.0.0-SNAPSHOT ZIP in openidm/bin/update
      • launch Update:
        ./cli.sh update  --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm openidm-5.0.0-SNAPSHOT.zip
        

      The update fails with this error found in the log:

      FINEST: processing archive file: conf/repo.orientdb.json.patch
      Aug 31, 2016 11:02:55 AM org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread run
      FINE: Failed to install update!
      org.forgerock.openidm.maintenance.upgrade.UpdateException: Patch request failed
             	at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.patchConfig(UpdateManagerImpl.java:1258)
             	at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.applyConfigPatch(UpdateManagerImpl.java:1100)
             	at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.run(UpdateManagerImpl.java:982)
      Caused by: org.forgerock.json.resource.NotFoundException: No existing configuration found for org.forgerock.openidm.repo.orientdb, can not patch the configuration.
             	at org.forgerock.openidm.config.manage.ConfigObjectService.patch(ConfigObjectService.java:595)
             	at org.forgerock.openidm.config.manage.ConfigObjectService.handlePatch(ConfigObjectService.java:562)
             	at org.forgerock.json.resource.Router.handlePatch(Router.java:283)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:89)
             	at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:82)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:82)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:82)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.openidm.audit.filter.AuditFilter$4.apply(AuditFilter.java:132)
             	at org.forgerock.openidm.audit.filter.AuditFilter$4.apply(AuditFilter.java:129)
             	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
             	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
             	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
             	at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:204)
             	at org.forgerock.openidm.audit.filter.AuditFilter.filterPatch(AuditFilter.java:128)
             	at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:80)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$5.filterPatch(ServletConnectionFactory.java:506)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.json.resource.Filters$ConditionalFilter.filterPatch(Filters.java:82)
             	at org.forgerock.openidm.filter.MutableFilterDecorator.filterPatch(MutableFilterDecorator.java:76)
             	at org.forgerock.json.resource.FilterChain$Cursor.handlePatch(FilterChain.java:87)
             	at org.forgerock.json.resource.FilterChain.handlePatch(FilterChain.java:225)
             	at org.forgerock.json.resource.InternalConnection.patchAsync(InternalConnection.java:70)
             	at org.forgerock.json.resource.AbstractAsynchronousConnection.patch(AbstractAsynchronousConnection.java:56)
             	at org.forgerock.json.resource.AbstractConnectionWrapper.patch(AbstractConnectionWrapper.java:150)
             	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.patch(ServletConnectionFactory.java:255)
             	at org.forgerock.json.resource.AbstractConnectionWrapper.patch(AbstractConnectionWrapper.java:150)
             	at org.forgerock.openidm.maintenance.upgrade.UpdateManagerImpl$UpdateThread.patchConfig(UpdateManagerImpl.java:1256)
             	... 2 more
      

      It looks like Update Tool should ignore this patch for repo.orientdb.json because repo.orientdb.json does not exist when we use MySQL as a repo.

        Attachments

          Activity

            People

            Assignee:
            brmiller Brendan Miller
            Reporter:
            laurent.bristiel Laurent Bristiel [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: