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:53:36 UTC
[syncope] branch 2_0_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_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_0_X by this push:
new 0636ce4 SYNCOPE-1393 jexl function fullPath2Dn(final String fullPath, final String attr, final String prefix) should return empty string for ROOT realm (#88)
0636ce4 is described below
commit 0636ce4afd7071d767a1e0fd8922d4646ceb2cfd
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 a3b5c36..d9a2879 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);