Skip to content

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

2 participants