Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
b9b38df3
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b9b38df3
编写于
5月 27, 2022
作者:
M
Minglei Jin
提交者:
GitHub
5月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #12871 from taosdata/fix/TS-1550
fix(query): reverted the max length of secret
上级
dc5d56c3
909f08d0
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
11 addition
and
13 deletion
+11
-13
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+1
-1
src/client/src/tscSql.c
src/client/src/tscSql.c
+1
-1
src/inc/taosdef.h
src/inc/taosdef.h
+2
-2
src/kit/shell/src/shellDarwin.c
src/kit/shell/src/shellDarwin.c
+1
-1
src/kit/shell/src/shellLinux.c
src/kit/shell/src/shellLinux.c
+1
-1
src/kit/shell/src/shellWindows.c
src/kit/shell/src/shellWindows.c
+1
-1
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+1
-1
tests/pytest/account/account_create.py
tests/pytest/account/account_create.py
+1
-3
tests/script/general/user/pass_len.sim
tests/script/general/user/pass_len.sim
+1
-1
tests/script/unique/account/pass_len.sim
tests/script/unique/account/pass_len.sim
+1
-1
未找到文件。
src/client/src/tscSQLParser.c
浏览文件 @
b9b38df3
...
@@ -368,7 +368,7 @@ static int32_t handlePassword(SSqlCmd* pCmd, SStrToken* pPwd) {
...
@@ -368,7 +368,7 @@ static int32_t handlePassword(SSqlCmd* pCmd, SStrToken* pPwd) {
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg1
);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg1
);
}
}
if
(
pPwd
->
n
>
TSDB_PASS_LEN
-
1
)
{
if
(
pPwd
->
n
>
=
TSDB_PASS_LEN
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
}
}
...
...
src/client/src/tscSql.c
浏览文件 @
b9b38df3
...
@@ -64,7 +64,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa
...
@@ -64,7 +64,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa
}
}
SRpcCorEpSet
corMgmtEpSet
;
SRpcCorEpSet
corMgmtEpSet
;
char
secretEncrypt
[
TSDB_PASS_LEN
]
=
{
0
};
char
secretEncrypt
[
32
]
=
{
0
};
int
secretEncryptLen
=
0
;
int
secretEncryptLen
=
0
;
if
(
auth
==
NULL
)
{
if
(
auth
==
NULL
)
{
if
(
!
validPassword
(
pass
))
{
if
(
!
validPassword
(
pass
))
{
...
...
src/inc/taosdef.h
浏览文件 @
b9b38df3
...
@@ -86,9 +86,9 @@ extern const int32_t TYPE_BYTES[16];
...
@@ -86,9 +86,9 @@ extern const int32_t TYPE_BYTES[16];
#define TSDB_DEFAULT_USER "root"
#define TSDB_DEFAULT_USER "root"
#define TSDB_DEFAULT_PASS "taosdata"
#define TSDB_DEFAULT_PASS "taosdata"
#define TSDB_PASS_LEN 1
29
#define TSDB_PASS_LEN 1
6
#define SHELL_MAX_PASSWORD_LEN
TSDB_PASS_LEN
#define SHELL_MAX_PASSWORD_LEN
20
#define TSDB_TRUE 1
#define TSDB_TRUE 1
#define TSDB_FALSE 0
#define TSDB_FALSE 0
#define TSDB_OK 0
#define TSDB_OK 0
...
...
src/kit/shell/src/shellDarwin.c
浏览文件 @
b9b38df3
...
@@ -89,7 +89,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
...
@@ -89,7 +89,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
printf
(
"Enter password: "
);
printf
(
"Enter password: "
);
taosSetConsoleEcho
(
false
);
taosSetConsoleEcho
(
false
);
if
(
scanf
(
"%
128
s"
,
g_password
)
>
1
)
{
if
(
scanf
(
"%s"
,
g_password
)
>
1
)
{
fprintf
(
stderr
,
"password read error
\n
"
);
fprintf
(
stderr
,
"password read error
\n
"
);
}
}
taosSetConsoleEcho
(
true
);
taosSetConsoleEcho
(
true
);
...
...
src/kit/shell/src/shellLinux.c
浏览文件 @
b9b38df3
...
@@ -194,7 +194,7 @@ static void parse_args(
...
@@ -194,7 +194,7 @@ static void parse_args(
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
printf
(
"Enter password: "
);
printf
(
"Enter password: "
);
taosSetConsoleEcho
(
false
);
taosSetConsoleEcho
(
false
);
if
(
scanf
(
"%
128
s"
,
g_password
)
>
1
)
{
if
(
scanf
(
"%s"
,
g_password
)
>
1
)
{
fprintf
(
stderr
,
"password reading error
\n
"
);
fprintf
(
stderr
,
"password reading error
\n
"
);
}
}
taosSetConsoleEcho
(
true
);
taosSetConsoleEcho
(
true
);
...
...
src/kit/shell/src/shellWindows.c
浏览文件 @
b9b38df3
...
@@ -93,7 +93,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
...
@@ -93,7 +93,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
||
(
strncmp
(
argv
[
i
],
"--password"
,
10
)
==
0
))
{
printf
(
"Enter password: "
);
printf
(
"Enter password: "
);
taosSetConsoleEcho
(
false
);
taosSetConsoleEcho
(
false
);
if
(
scanf
(
"%
128
s"
,
g_password
)
>
1
)
{
if
(
scanf
(
"%s"
,
g_password
)
>
1
)
{
fprintf
(
stderr
,
"password read error!
\n
"
);
fprintf
(
stderr
,
"password read error!
\n
"
);
}
}
taosSetConsoleEcho
(
true
);
taosSetConsoleEcho
(
true
);
...
...
src/mnode/src/mnodeDnode.c
浏览文件 @
b9b38df3
...
@@ -548,7 +548,7 @@ static int32_t mnodeProcessDnodeStatusMsg(SMnodeMsg *pMsg) {
...
@@ -548,7 +548,7 @@ static int32_t mnodeProcessDnodeStatusMsg(SMnodeMsg *pMsg) {
pStatus
->
numOfCores
=
htons
(
pStatus
->
numOfCores
);
pStatus
->
numOfCores
=
htons
(
pStatus
->
numOfCores
);
uint32_t
_version
=
htonl
(
pStatus
->
version
);
uint32_t
_version
=
htonl
(
pStatus
->
version
);
if
(
_version
!=
tsVersion
>>
8
)
{
if
(
(
_version
>>
16
)
!=
(
tsVersion
>>
24
)
)
{
pDnode
=
mnodeGetDnodeByEp
(
pStatus
->
dnodeEp
);
pDnode
=
mnodeGetDnodeByEp
(
pStatus
->
dnodeEp
);
if
(
pDnode
!=
NULL
&&
pDnode
->
status
!=
TAOS_DN_STATUS_READY
)
{
if
(
pDnode
!=
NULL
&&
pDnode
->
status
!=
TAOS_DN_STATUS_READY
)
{
pDnode
->
offlineReason
=
TAOS_DN_OFF_VERSION_NOT_MATCH
;
pDnode
->
offlineReason
=
TAOS_DN_OFF_VERSION_NOT_MATCH
;
...
...
tests/pytest/account/account_create.py
浏览文件 @
b9b38df3
...
@@ -33,9 +33,7 @@ class TDTestCase:
...
@@ -33,9 +33,7 @@ class TDTestCase:
tdSql
.
error
(
"create user tdenginetdenginetdengine PASS 'test' "
)
tdSql
.
error
(
"create user tdenginetdenginetdengine PASS 'test' "
)
tdSql
.
execute
(
"create user tdenginet PASS '1234512345123456' "
)
tdSql
.
error
(
"create user tdenginet PASS '1234512345123456' "
)
tdSql
.
error
(
"create user tenginet PASS 'abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890' "
)
try
:
try
:
tdSql
.
execute
(
"create account a&cc PASS 'pass123'"
)
tdSql
.
execute
(
"create account a&cc PASS 'pass123'"
)
...
...
tests/script/general/user/pass_len.sim
浏览文件 @
b9b38df3
...
@@ -59,7 +59,7 @@ endi
...
@@ -59,7 +59,7 @@ endi
print =============== step4
print =============== step4
$i = 3
$i = 3
$user = $userPrefix . $i
$user = $userPrefix . $i
sql create user $user PASS 'abcd
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890excess
' -x step4
sql create user $user PASS 'abcd
012345678901234567891234567890
' -x step4
return -1
return -1
step4:
step4:
sql show users
sql show users
...
...
tests/script/unique/account/pass_len.sim
浏览文件 @
b9b38df3
...
@@ -58,7 +58,7 @@ endi
...
@@ -58,7 +58,7 @@ endi
print =============== step4
print =============== step4
$i = 3
$i = 3
$user = $userPrefix . $i
$user = $userPrefix . $i
sql create user $user PASS 'abcd01234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890excess
' -x step4
sql create user $user PASS 'abcd01234567890123456789
1234567890
' -x step4
return -1
return -1
step4:
step4:
sql show users
sql show users
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录