You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/04/30 08:49:33 UTC
[syncope] branch master updated: Ensure surrounding spaces are
ignored when providing multiple order by clauses
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 578bc5e Ensure surrounding spaces are ignored when providing multiple order by clauses
578bc5e is described below
commit 578bc5eea7e61fc5c2bfa6519c9225502ee37040
Author: Francesco Chicchiriccò <il...@apachge.org>
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/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
index 73eaf5b..9dacfa4 100644
--- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java
+++ b/core/idrepo/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();