Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
3.1.1
-
None
-
None
-
Turing
-
Turing sprint 125
Description
Forward port CMS-9621 to trunk: ReferringDocumentsProvider should use path instead of node name in sorting method
Right now it reports wrong number of referred documents.
method:
private static SortedSet<Node> getSortedReferrers(final Collection<Node> nodes) throws RepositoryException {
final TreeSet<Node> sorted = new TreeSet<>(new Comparator<Node>() {
@Override
public int compare(final Node node1, final Node node2)
catch (RepositoryException e)
{ throw new RepositoryRuntimeException(e); }}
});
sorted.addAll(nodes);
return sorted;
}
should be:
private static SortedSet<Node> getSortedReferrers(final Collection<Node> nodes) throws RepositoryException {
final TreeSet<Node> sorted = new TreeSet<>(new Comparator<Node>() {
@Override
public int compare(final Node node1, final Node node2) {
try { return node1.getPath().compareTo(node2.getPath()); } catch (RepositoryException e) { throw new RepositoryRuntimeException(e); }
}
});
sorted.addAll(nodes);
return sorted;
}
Attachments
Issue Links
- is a forward port of
-
CMS-9621 ReferringDocumentsProvider should use path instead of node name in sorting method
- Closed