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

Unicode-normalize manifest and file paths before comparing #71

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

dmoles
Copy link
Contributor

@dmoles dmoles commented Dec 4, 2022

When checking whether a path exists in the manifest, uses the the same normalization rules as in ManifestVerifier.existsNormalized() to normalize paths before comparison.

Fixes #70.

@jscancella
Copy link
Owner

You should create a test case for this in https://github.com/LibraryOfCongress/bagit-conformance-suite/tree/master/v0.97 probably under MacOS since this is specific to how Mac normalizes filesystem file names.

@jscancella
Copy link
Owner

Thank you for the pull request! I am ready to merge this as soon as you add to the https://github.com/jscancella/bagging/tree/master/developer%20certificates

@dmoles
Copy link
Contributor Author

dmoles commented Jan 10, 2023

@jscancella I've added my DCO to the PR. Sorry for the delay.

@dmoles
Copy link
Contributor Author

dmoles commented Jan 10, 2023

I also added a test case (bagit.py passes, yay) to the conformance suite: LibraryOfCongress/bagit-conformance-suite#15

@jscancella jscancella merged commit dae9538 into jscancella:master Jan 11, 2023
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.

Accented character in filename prevents payload verification on macOS
2 participants