mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged 5.2.N (5.2.2) to HEAD (5.2)
137084 gjames: Merged searchrep (5.2.1) to 5.2.N (5.2.1) 136999 gjames: SEARCH-451: Better handling of invalid pivot params git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137599 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -624,6 +624,11 @@ public class SearchMapper
|
||||
if (foundStat.isPresent())
|
||||
{
|
||||
pivotKey = aPivot.getKey();
|
||||
if (pivotKeys.isEmpty())
|
||||
{
|
||||
throw new InvalidArgumentException(InvalidArgumentException.DEFAULT_MESSAGE_ID,
|
||||
new Object[] { ": Stats key " + pivotKey + " cannot be used here" });
|
||||
}
|
||||
pivotKeys.add(pivotKey);
|
||||
searchRequestContext.getPivotKeys().put(pivotKey, pivotKey);
|
||||
}
|
||||
@@ -636,6 +641,11 @@ public class SearchMapper
|
||||
if (aRange.getTags().contains(aPivot.getKey()))
|
||||
{
|
||||
pivotKey = aPivot.getKey();
|
||||
if (pivotKeys.isEmpty())
|
||||
{
|
||||
throw new InvalidArgumentException(InvalidArgumentException.DEFAULT_MESSAGE_ID,
|
||||
new Object[] { ": Range key " + pivotKey + " cannot be used here" });
|
||||
}
|
||||
pivotKeys.add(pivotKey);
|
||||
searchRequestContext.getPivotKeys().put(pivotKey, pivotKey);
|
||||
}
|
||||
|
Reference in New Issue
Block a user