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:16 UTC

[syncope] branch master updated (6c9fc67 -> 3ab8827)

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

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


    from 6c9fc67  [SYNCOPE-1532] Extending the set of allowed characters for Realms name and path
     new 6badd40  [SYCOPE-1532] Extend for generic key values
     new 3ab8827  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] 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 master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 6badd40a1139b1e1ca5259db676ecb345c0db84a
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/idrepo/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
index cf10a52..d0db694 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/SyncopeConstants.java
@@ -39,7 +39,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 3794dcb..d48a24a 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);


[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 master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 3ab88279963d16b8572f017794346f86927cea6f
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Jan 14 16:58:01 2020 +0100

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

diff --git a/pom.xml b/pom.xml
index 23b31b7..d4e3ea5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -408,7 +408,7 @@ under the License.
 
     <jackson.version>2.10.2</jackson.version>
 
-    <spring.version>5.2.2.RELEASE</spring.version>
+    <spring.version>5.2.3.RELEASE</spring.version>
     <spring-security.version>5.2.1.RELEASE</spring-security.version>
     <spring-boot.version>2.2.2.RELEASE</spring-boot.version>
     <spring-cloud-gateway.version>2.2.1.RELEASE</spring-cloud-gateway.version>