[ALF-22056] onCopyCompleteBehaviour not called in order of copy-action Created: 10-Jan-19 Updated: 16-Oct-19 Resolved: 19-Feb-19
|Affects Version/s:||Community Edition Next|
|Fix Version/s:||ACS 201910-EA|
|Security Level:||external (External user)|
|Reporter:||Jens Kluttig||Assignee:||Closed Issues|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Resolution Time Custom Field:||5 weeks, 4 days, 18 hours, 19 minutes, 45 seconds|
If a folder with documents is copied then the onCopyComplete-Policy is not called in the exact order of the childs.
In our project we have a domain specific indentifier for children of a folder, which is added via a behaviour.
If a folder is copied, then this identifier is the same as in the copy-source.
The children are copied in the right order, but the identifier is added randomly.
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.