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 2020/01/14 16:03:20 UTC

[syncope] branch 2_1_X updated (8f1054e -> 365dff9)

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a change to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git.


    from 8f1054e  [SYNCOPE-1532] Extending the set of allowed characters for Realms name and path
     new ae58789  [SYCOPE-1532] Extend for generic key values
     new 365dff9  Upgrading Spring

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/syncope/common/lib/SyncopeConstants.java    |  2 +-
 .../test/java/org/apache/syncope/fit/core/RoleITCase.java  | 14 +++++++++++---
 pom.xml                                                    |  2 +-
 3 files changed, 13 insertions(+), 5 deletions(-)


[syncope] 02/02: Upgrading Spring

Posted by il...@apache.org.
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

commit 365dff9b51b30d71b4dbd463e445461ce6443055
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Jan 14 16:58:17 2020 +0100

    Upgrading Spring
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index a6354c4..afc905b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -408,7 +408,7 @@ under the License.
 
     <jackson.version>2.10.2</jackson.version>
 
-    <spring.version>5.1.12.RELEASE</spring.version>
+    <spring.version>5.1.13.RELEASE</spring.version>
     <spring-security.version>5.1.7.RELEASE</spring-security.version>
 
     <openjpa.version>3.1.0</openjpa.version>


[syncope] 01/02: [SYCOPE-1532] Extend for generic key values

Posted by il...@apache.org.
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

commit ae587891438059848fe404b9540fbcf523d4223f
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Jan 14 13:49:27 2020 +0100

    [SYCOPE-1532] Extend for generic key values
---
 .../org/apache/syncope/common/lib/SyncopeConstants.java    |  2 +-
 .../test/java/org/apache/syncope/fit/core/RoleITCase.java  | 14 +++++++++++---
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java b/common/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
index fea103a..93c850c 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
@@ -40,7 +40,7 @@ public final class SyncopeConstants {
 
     public static final String ENUM_VALUES_SEPARATOR = ";";
 
-    public static final String NAME_PATTERN = "[\\p{L}\\p{gc=Mn}\\p{gc=Me}\\p{gc=Mc}\\p{Digit}\\p{gc=Pc} \\-@.]+";
+    public static final String NAME_PATTERN = "[\\p{L}\\p{gc=Mn}\\p{gc=Me}\\p{gc=Mc}\\p{Digit}\\p{gc=Pc} \\-@.~]+";
 
     public static final String[] DATE_PATTERNS = {
         "yyyy-MM-dd'T'HH:mm:ssZ",
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/RoleITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/RoleITCase.java
index 82649fc..054b40a 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/RoleITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/RoleITCase.java
@@ -55,9 +55,7 @@ public class RoleITCase extends AbstractITCase {
         List<RoleTO> roleTOs = roleService.list();
         assertNotNull(roleTOs);
         assertFalse(roleTOs.isEmpty());
-        for (RoleTO instance : roleTOs) {
-            assertNotNull(instance);
-        }
+        roleTOs.forEach(instance -> assertNotNull(instance));
     }
 
     @Test
@@ -88,6 +86,16 @@ public class RoleITCase extends AbstractITCase {
     }
 
     @Test
+    public void createWithTilde() {
+        RoleTO role = new RoleTO();
+        role.getRealms().add(SyncopeConstants.ROOT_REALM);
+        role.getEntitlements().add(StandardEntitlement.LOG_LIST);
+        role.setKey("new~" + getUUIDString());
+        role = createRole(role);
+        assertNotNull(role);
+    }
+
+    @Test
     public void update() {
         RoleTO role = getSampleRoleTO("update");
         role = createRole(role);