Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-12182

Unable to create versioned node with previously deleted UUID

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.b Community
    • Fix Version/s: 4.2 Enterprise
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
      None

      Description

      I have this problem when implementing custom import/export functionality, the case is:
      1) Some document node is created and edited
      2) Its node data is exported to some dump
      3) Node is deleted on the server
      4) Dump is tried to be restored, preserving old node UUID but not restoring version-related properties like version label (as we don't care about them)
      5) Error occur while trying to add "Versionable" aspect during restore

      org.alfresco.service.cmr.version.VersionServiceException: 11240989 The current version label of the node does not exist in the version history.
      at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:300)
      at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:139)
      at org.alfresco.repo.version.VersionableAspect.createVersionImpl(VersionableAspect.java:474)
      at org.alfresco.repo.version.VersionableAspect.onAddAspect(VersionableAspect.java:328)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:173)
      at $Proxy15.onAddAspect(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(TransactionBehaviourQueue.java:245)
      ... 40 more

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                lightoze Vladimir Kulev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Structure Helper Panel