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 2018/11/05 13:55:36 UTC
[syncope] branch 2_1_X updated: SYNCOPE-1393 jexl function
fullPath2Dn(final String fullPath, final String attr,
final String prefix) should return empty string for ROOT realm (#88)
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 9702f2b SYNCOPE-1393 jexl function fullPath2Dn(final String fullPath, final String attr, final String prefix) should return empty string for ROOT realm (#88)
9702f2b is described below
commit 9702f2be62c9798b9c1b1211313049e836f81418
Author: Alexander Tsvetkov <al...@gmail.com>
AuthorDate: Mon Nov 5 16:53:32 2018 +0300
SYNCOPE-1393 jexl function fullPath2Dn(final String fullPath, final String attr, final String prefix) should return empty string for ROOT realm (#88)
---
.../syncope/core/provisioning/java/jexl/SyncopeJexlFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/jexl/SyncopeJexlFunctions.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/jexl/SyncopeJexlFunctions.java
index bf770d1..5cf632a 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/jexl/SyncopeJexlFunctions.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/jexl/SyncopeJexlFunctions.java
@@ -57,7 +57,7 @@ public class SyncopeJexlFunctions {
public String fullPath2Dn(final String fullPath, final String attr, final String prefix) {
String[] fullPathSplitted = fullPath.split("/");
if (fullPathSplitted == null || fullPathSplitted.length <= 1) {
- return prefix;
+ return StringUtils.EMPTY;
}
List<String> headless = Arrays.asList(fullPathSplitted).subList(1, fullPathSplitted.length);