#245 创建云脑任务后端生成的默认任务名可能违反约束,可能导致云脑任务创建失败

Closed
created 2 years ago by ychao_1983 · 6 comments
1 云脑任务名要求是 小写字母,数字,'-','_' 创建云脑任务时,后端返回的云脑任务名,取了用户名的前5位字符,可能包含大写字符,特殊字符等不满足需要的字符,会导致云脑任务创建失败
ychao_1983 added this to the V202108 milestone 2 years ago
ychao_1983 added the
bug
label 2 years ago
ychao_1983 self-assigned this 2 years ago
zhoupzh was assigned by ychao_1983 2 years ago
ychao_1983 commented 2 years ago
Owner
后端处理:默认任务名是用户名前缀+时间戳后缀,只需处理用户名前缀,用户名的前5个字符(用户名不足5个的取全部)先转为小写,如果转换后还有不符合约束的字符去掉。 Test -> test Test12_-.3 ->test12_-3
lewis commented 2 years ago
Owner
代码已合入V202108分支,可测试。
wangj was assigned by lewis 2 years ago
zhoupzh commented 2 years ago
Collaborator
该任务合并了前端#92的问题。
wangj commented 2 years ago
Owner
与云脑1的任务名约束保持一致。 云脑1的任务名规则: (1)只能以小写字母或数字开头且只包含小写字母、数字、_和- (2)最长36个字符
wangj commented 2 years ago
Owner
后端的修改,通过测试。前端,有待更新。
wangj removed their assignment 2 years ago
wangj self-assigned this 2 years ago
wangj commented 2 years ago
Owner
通过测试,关闭此单。
wangj closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
4 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.