This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 112ca1f Ensure surrounding spaces are ignored when providing multiple
order by clauses
112ca1f is described below
commit 112ca1f2f43766e8fff10343318a116629499380
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Tue Apr 30 10:47:30 2019 +0200
Ensure surrounding spaces are ignored when providing multiple order by
clauses
---
.../org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
index 73eaf5b..9dacfa4 100644
---
a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
+++
b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
@@ -186,7 +186,7 @@ abstract class AbstractServiceImpl implements JAXRSService {
List<OrderByClause> result = new ArrayList<>();
for (String clause : orderBy.split(",")) {
- String[] elems = clause.split(" ");
+ String[] elems = clause.trim().split(" ");
if (elems.length > 0 && StringUtils.isNotBlank(elems[0])) {
OrderByClause obc = new OrderByClause();