-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
关于上传zip时候,type判断的bug #1966
Milestone
Comments
欢迎你贡献修复! |
嗯嗯,好的,第一次加入开源项目,很荣幸,我先学习下怎么做。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
代码如下:
if (configInfo.getDataId().contains(SPOT)) {
String extName = configInfo.getDataId().substring(configInfo.getDataId().lastIndexOf(SPOT) + 1).toLowerCase();
try {
type = FileTypeEnum.valueOf(extName).getFileType();
} catch (Exception ex) {
type = FileTypeEnum.TEXT.getFileType();
}
}
Describe what happened (or what feature you want)
Describe what you expected to happen
至少应该toUpperCase一下吧,要不然type全部text类型了
type = FileTypeEnum.valueOf(extName.toUpperCase()).getFileType();
How to reproduce it (as minimally and precisely as possible)
上传zip配置包
Tell us your environment
Anything else we need to know?
小bug希望大佬们修复一下
The text was updated successfully, but these errors were encountered: