You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2021/05/05 06:40:05 UTC

[unomi] branch UNOMI-481-allow-dot created (now 0022090)

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

shuber pushed a change to branch UNOMI-481-allow-dot
in repository https://gitbox.apache.org/repos/asf/unomi.git.


      at 0022090  UNOMI-481 Allow dot character for profileId and sessionId

This branch includes the following new commits:

     new 0022090  UNOMI-481 Allow dot character for profileId and sessionId

The 1 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.


[unomi] 01/01: UNOMI-481 Allow dot character for profileId and sessionId

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch UNOMI-481-allow-dot
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 0022090856849ec0a17adb7259ad5badc8b02d37
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Wed May 5 08:39:57 2021 +0200

    UNOMI-481 Allow dot character for profileId and sessionId
---
 api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java | 2 +-
 itests/src/test/resources/validation/contextRequest_valid.json      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java b/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
index ee5444e..ca7255d 100644
--- a/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
+++ b/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
@@ -18,5 +18,5 @@ package org.apache.unomi.api.utils;
 
 public class ValidationPattern {
 
-    public static final String TEXT_VALID_CHARACTERS_PATTERN = "^(\\w|[-_@]){0,50}$";
+    public static final String TEXT_VALID_CHARACTERS_PATTERN = "^(\\w|[-_@\\.]){0,50}$";
 }
diff --git a/itests/src/test/resources/validation/contextRequest_valid.json b/itests/src/test/resources/validation/contextRequest_valid.json
index 27b8f57..3887b86 100644
--- a/itests/src/test/resources/validation/contextRequest_valid.json
+++ b/itests/src/test/resources/validation/contextRequest_valid.json
@@ -6,6 +6,6 @@
     "version": null,
     "properties": {}
   },
-  "sessionId": "dummy-session-id",
-  "profileId": "dummy-profile-id"
+  "sessionId": "dummy-session.id",
+  "profileId": "dummy-profile.id"
 }
\ No newline at end of file