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

GDCC/21- Handle path and file validation #27

Closed
wants to merge 10 commits into from

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jun 5, 2024

This PR adds checks for valid path and filenames, using regexes based on the rules reported by Dataverse in the server.log. With the PR, these potential errors are caught and the user is warned that disallowed chars will be replaced by _ if the highlighted files are actually selected for upload. That substitution is done if any such files are uploaded. Checks for existing files also handle this substitution, i.e. the check is to see if a file with the changed path/filename exists in the dataset (not just the original/not allowed versions with bad chars).

Closes #21

In addition to #21, these issues were seen at QDR and we've been testing with our (slight) variant (some styling changes).

@qqmyers qqmyers mentioned this pull request Aug 20, 2024
@qqmyers
Copy link
Member Author

qqmyers commented Aug 20, 2024

Closing in favor of #36

@qqmyers qqmyers closed this Aug 20, 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

Successfully merging this pull request may close these issues.

filename validation ConstraintViolationException
1 participant