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

fileNamesCheck #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fileNamesCheck #19

wants to merge 1 commit into from

Conversation

selvaebi
Copy link
Contributor

@selvaebi selvaebi commented Dec 1, 2022

No description provided.

if (!dataFile.getFileName().matches("[^-_.A-Za-z0-9]")){
report.addMessage(new ValidationMessage(ValidationMessage.Type.WARNING, "POSIX compatible charset is NOT used in file name '" + actualFile.getName() + "'"));
if (dataFile.getFileName().matches("[^-_.A-Za-z0-9]")){
report.addMessage(new ValidationMessage(ValidationMessage.Type.ERROR, "POSIX compatible charset is NOT used in file name '" + actualFile.getName() + "'"));
Copy link
Contributor

@chakrabandla chakrabandla Dec 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this error appear to user in submission tool? if the user is going to see text then it should be a more easily understandable sentence like only .-_ are allowed in a filename

Copy link
Contributor

@chakrabandla chakrabandla Dec 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this logic disallows user to submit files? or more changes are needed in submission tool code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah makes sense will change it.

@selvaebi
Copy link
Contributor Author

selvaebi commented Dec 1, 2022

It will deny user to proceed

@chakrabandla
Copy link
Contributor

users should be forced to download new version of the tool

@selvaebi
Copy link
Contributor Author

selvaebi commented Dec 1, 2022

yeah i havent update submission tool yet , waiting for experimental type addition

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

Successfully merging this pull request may close these issues.

3 participants