mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
29.38.2016 6cbfdb7b0cf38f41d16df60ef427db7d629f5965
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, January 29, 2016 17:38 +0100
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, February 1, 2016 13:48 +0100
commit6cbfdb7b0cf38f41d16df60ef427db7d629f5965
tree 9e6b1b103ab0fefa5c98b426b56f59041c157e71 tree | zip | gz
parent 7662842520cb3458930035dd726d5c18e8cfd31a view | diff
OPENDJ-2650 No more task log (detail or error) when running tools in online mode (import, backup,...)

The problem is linked to the removal of if (attributeType.mayHaveSubordinateTypes()) checks in Entry.java.
When it was there, this check ensured the method Entry.getAttribute(AttributeType)
always returned the internal List representing the ds-task-log-message attribute.
Thus the code in Task.addLogMessage() was always updating the internal state of the task entry.

Now that we have removed the aforementioned check, Entry.getAttribute(AttributeType)
always returns a newly created List object, thus the update performed by Task.addLogMessage() is lost.

Task.java:
In addLogMessage(), used a more robust way to update the ds-task-log-message attribute value.
1 files modified
79 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/task/Task.java 79 ●●●● diff | view | raw | blame | history