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

onCopyCompleteBehaviour not called in order of copy-action

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Community Edition Next
    • Fix Version/s: ACS 201910-EA
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
    • Triage:
      MNT
    • Resolution Time Custom Field:
      5 weeks, 4 days, 18 hours, 19 minutes, 45 seconds

      Description

      If a folder with documents is copied then the onCopyComplete-Policy is not called in the exact order of the childs.

      Scenario:

      In our project we have a domain specific indentifier for children of a folder, which is added via a behaviour.

      Expectation:

      If a folder is copied, then this identifier is the same as in the copy-source.

      Observation:

      The children are copied in the right order, but the identifier is added randomly.

      Proposed solution:

      I debugged this and found out that the problem is the implementation of an map in the CopyServiceImpl.copy method. This method holds all copied nodes on which later the onCopyComplete-Policy is executed. But this Map is a HashMap, which order is defined by the hashValue of its entries.

      I thought this might be the best way to contribute my first code-changes via a pull-request.

      https://github.com/Alfresco/alfresco-repository/pull/319

       

       

       

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  JensKluttig Jens Kluttig
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel