You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sp...@apache.org on 2023/07/11 04:43:56 UTC
[iotdb] branch refactor/new_auth updated (9d75590b2e9 -> c390e6fa941)
This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a change to branch refactor/new_auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
from 9d75590b2e9 Fix Test
new 1a784108a27 Fix regex
new c390e6fa941 Fix prompt
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:
.../src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
[iotdb] 01/02: Fix regex
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch refactor/new_auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 1a784108a278ca2545e288eebca06abbe9dc74db
Author: spricoder <sp...@qq.com>
AuthorDate: Tue Jul 11 12:41:29 2023 +0800
Fix regex
---
.../src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
index 1acd6e6d698..33edc023a6f 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
+++ b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
@@ -52,7 +52,7 @@ public class AuthUtils {
public static PartialPath ROOT_PATH_PRIVILEGE_PATH;
private static final int MIN_LENGTH = 4;
private static final int MAX_LENGTH = 64;
- private static final String REX_PATTERN = "^[a-zA-Z][-\\w]*$";
+ private static final String REX_PATTERN = "^[-\\w]*$";
static {
try {
[iotdb] 02/02: Fix prompt
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch refactor/new_auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit c390e6fa941950233ea6346d21cc6abebfed6520
Author: spricoder <sp...@qq.com>
AuthorDate: Tue Jul 11 12:42:06 2023 +0800
Fix prompt
---
.../src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
index 33edc023a6f..1578fdc5fa8 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
+++ b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java
@@ -129,8 +129,7 @@ public class AuthUtils {
} else if (!str.matches(REX_PATTERN)) {
throw new AuthException(
TSStatusCode.ILLEGAL_PARAMETER,
- "The name or password can only contain letters, numbers, and underscores, "
- + "and cannot start with numbers");
+ "The name or password can only contain letters, numbers, and underscores");
}
}