Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-606

Error restoring a deleted asset to its previous version

    XMLWordPrintable

    Details

    • Sprint:
      Kromeriz 49, Kromeriz 51
    • Story Points:
      5
    • Magnolia Release:
      5.3.15, 5.4.8

      Description

      After deleting an asset, an editor is given the option to "Restore previous version". Performing this action restores the asset but throws an error.

      2015-07-27 13:50:19,139 INFO  info.magnolia.module.scheduler.CommandJob         : Starting job [UI Action triggered execution of [default:markAsDeleted] by user [superuser]. (3)]...
      2015-07-27 13:50:19,257 INFO  info.magnolia.module.scheduler.CommandJob         : Job executed successfully [UI Action triggered execution of [default:markAsDeleted] by user [superuser]. (3)]
      2015-07-27 13:50:22,145 INFO  info.magnolia.module.scheduler.CommandJob         : Starting job [UI Action triggered execution of [default:restorePreviousVersion] by user [superuser]. (4)]...
      2015-07-27 13:50:22,198 ERROR info.magnolia.module.scheduler.CommandJob         : Cannot execute command restorePreviousVersion-default.
      javax.jcr.UnsupportedRepositoryOperationException: Unable to perform a versioning operation on a non versionable node: /magnolia-logo-print/description_files
      	at org.apache.jackrabbit.core.version.VersionManagerImplBase.checkVersionable(VersionManagerImplBase.java:293)
      	at org.apache.jackrabbit.core.version.VersionManagerImplBase.getVersionHistory(VersionManagerImplBase.java:354)
      	at org.apache.jackrabbit.core.VersionManagerImpl.access$700(VersionManagerImpl.java:73)
      	at org.apache.jackrabbit.core.VersionManagerImpl$4.perform(VersionManagerImpl.java:184)
      	at org.apache.jackrabbit.core.VersionManagerImpl$4.perform(VersionManagerImpl.java:180)
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      	at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:96)
      	at org.apache.jackrabbit.core.VersionManagerImpl.getVersionHistory(VersionManagerImpl.java:180)
      	at org.apache.jackrabbit.core.NodeImpl.getVersionHistory(NodeImpl.java:2997)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getVersionHistory(DelegateNodeWrapper.java:267)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getVersionHistory(DelegateNodeWrapper.java:267)
      	at info.magnolia.cms.core.version.BaseVersionManager.getAllVersions(BaseVersionManager.java:367)
      	at info.magnolia.commands.impl.RestorePreviousVersionCommand.getPreviousVersion(RestorePreviousVersionCommand.java:141)
      	at info.magnolia.commands.impl.RestorePreviousVersionCommand.restoreAllChildren(RestorePreviousVersionCommand.java:127)
      	at info.magnolia.commands.impl.RestorePreviousVersionCommand.restore(RestorePreviousVersionCommand.java:100)
      	at info.magnolia.commands.impl.RestorePreviousVersionCommand.execute(RestorePreviousVersionCommand.java:74)
      	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:81)
      	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:70)
      	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:135)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rsiska Robert Šiška
              Reporter:
              rgange Richard Gange
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2d 0.75h
                  2d 0.75h