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

[BUG]创建应用时名称存在大写导致应用无法更新 #4986

Closed
itpoo opened this issue May 11, 2024 · 2 comments
Closed

[BUG]创建应用时名称存在大写导致应用无法更新 #4986

itpoo opened this issue May 11, 2024 · 2 comments

Comments

@itpoo
Copy link

itpoo commented May 11, 2024

1Panel 版本

v1.10.7-lts

问题描述

创建应用时将默认小写应用名称修改成大写后无法更新应用。

查看系统日志提示错误:

[2024-05-12 04:47:41] [INFO] 应用 Halo 升级失败 invalid project name "Halo": must consist only of lowercase alphanumeric characters, hyphens, and underscores as well as start with a letter or number

Q:除了卸载重装应用以外,请问如何修改应用名称?

重现步骤

创建应用-->修改应用名称 “Halo“ -->应用升级/更新-->无反应-->系统日志-->提示应用名称必须仅由小写字母数字字符、连字符和下划线组成,并以字母或数字开头

期待的正确结果

1.建议创建应用时提示:
应用名称修改成大写会导致应用无法正常更新

2.建议系统强制应用名称修改规则:
强制应用名称变更为小写

3.提供应用名称快捷修改捷径:
若存在大写后续可提供可快捷修改应用名称的方法

相关日志输出

[2024-05-12 04:47:41] [INFO] 开始升级应用 <no value>  
[2024-05-12 04:47:41] [INFO] upgrade app [halo] [Halo] cp file log :    
[2024-05-12 04:47:41] [INFO] 应用 Halo 升级失败 invalid project name "Halo": must consist only of lowercase alphanumeric characters, hyphens, and underscores as well as start with a letter or number
@zhengkunwang223
Copy link
Collaborator

感谢反馈 已经复现 由于 docker SDK 升级,校验规则变得严格
后续版本修复

@wanghe-fit2cloud
Copy link
Member

v1.10.8-lts 版本已发布。

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

No branches or pull requests

3 participants