Skip to content

GDCC/21- Handle path and file validation#27

Closed
qqmyers wants to merge 10 commits into
mainfrom
GDCC/21-handle_path_and_file_validation
Closed

GDCC/21- Handle path and file validation#27
qqmyers wants to merge 10 commits into
mainfrom
GDCC/21-handle_path_and_file_validation

Conversation

@qqmyers

@qqmyers qqmyers commented Jun 5, 2024

Copy link
Copy Markdown
Member

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

qqmyers commented Aug 20, 2024

Copy link
Copy Markdown
Member Author

Closing in favor of #36

@qqmyers qqmyers closed this Aug 20, 2024
@qqmyers qqmyers deleted the GDCC/21-handle_path_and_file_validation branch June 9, 2026 18:34
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