From e9da15d93a6529875f2dfa557a68b17b8e38e693 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Mon, 27 Feb 2017 16:09:00 +0000 Subject: [PATCH] REPO-1204 / MNT-16742: getChildren returns duplicate nodes - fallout from MNT-12894 - noticed by customer when iterating via CMIS getChildren with no explict sort order - we need to put back an implicit sort order, if none is specified - note: todo - we could consider optimising further for those use-cases where maxItems is greater than a pre-configured threshold (eg. > 1000) and we don't expect to sensibly page through that many results git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135457 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../node-common-SqlMap.xml | 1 + .../GetChildrenCannedQueryTest.java | 118 ++++++++++++++---- 2 files changed, 93 insertions(+), 26 deletions(-) diff --git a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml index 16033512d9..37b651013b 100644 --- a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml +++ b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml @@ -1131,6 +1131,7 @@ and prop4.string_value like #{pattern} +