Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ID format validation #12824

Closed
88250 opened this issue Oct 18, 2024 · 5 comments
Closed

Improve ID format validation #12824

88250 opened this issue Oct 18, 2024 · 5 comments
Assignees

Comments

@88250
Copy link
Member

88250 commented Oct 18, 2024

W 2024/10/17 13:55:49 av.go:430: parse created [20240709158691] failed: parsing time "20240709158691": minute out of range
W 2024/10/17 13:55:49 av.go:430: parse created [20241016134765] failed: parsing time "20241016134765": second out of range

从用户反馈中发现一些 ID 格式不合法(分和秒不可能超过 59),需要改进 ID 校验实现。

@88250 88250 self-assigned this Oct 18, 2024
@88250 88250 added this to the 3.1.10 milestone Oct 18, 2024
88250 added a commit to 88250/lute that referenced this issue Oct 18, 2024
88250 added a commit to 88250/lute that referenced this issue Oct 18, 2024
88250 added a commit to 88250/lute that referenced this issue Oct 18, 2024
@88250 88250 closed this as completed Oct 18, 2024
@88250
Copy link
Member Author

88250 commented Oct 20, 2024

测试后发现严格校验会导致之前的一些块无法加载,还是只能取消校验。

@88250 88250 removed this from the 3.1.10 milestone Oct 20, 2024
@88250 88250 removed the Development label Oct 20, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Oct 20, 2024

ID 格式不合法会造成哪些问题?

@88250
Copy link
Member Author

88250 commented Oct 20, 2024

通过 id 获取创建时间会报错,正文里有日志。

@Temacc0531
Copy link

这些不合法的ID是怎么产生的

@88250
Copy link
Member Author

88250 commented Oct 21, 2024

猜测可能是某些插件扩展生成的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants