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 9220720 SYNCOPE-1393 jexl function fullPath2Dn(final String fullPath,
final String attr, final String prefix) should return empty string for ROOT
realm (#88)
9220720 is described below
commit 92207203968241d23d5d81fdf43c4923abddbffc
Author: Alexander Tsvetkov <[email protected]>
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);