-
Notifications
You must be signed in to change notification settings - Fork 7
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
Accented character in filename prevents payload verification on macOS #70
Comments
dmoles
added a commit
to dmoles/bagging
that referenced
this issue
Dec 4, 2022
dmoles
added a commit
to dmoles/bagging
that referenced
this issue
Dec 4, 2022
dmoles
added a commit
to dmoles/bagging
that referenced
this issue
Jan 10, 2023
jscancella#70 Signed-off-by: David Moles <[email protected]>
jscancella
pushed a commit
that referenced
this issue
Jan 11, 2023
* Unicode-normalize manifest and file paths before comparing; fixes issue #70 Signed-off-by: David Moles <[email protected]> * add developer certificate for David Moles Signed-off-by: David Moles <[email protected]>
Fixed in version 4.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
contrôle.txt
.Bag.read()
.bag.isValid()
(ignoreHiddenFiles
can be true or false, doesn't matter).Expected behavior
isValid()
returns trueActual behavior
isValid()
throwsFileNotInManifestException
System information
bagging
version: 4.4Notes
It looks like this may be a long-standing Java / macOS issue to do with how HFS+ does Unicode normalization.
If
toString()
conversion seems too risky, an alternative would be to compare the paths withFiles.isSameFile(Path, Path)
, which does seem to admit they're the same. I'll see if I can create a PR.The text was updated successfully, but these errors were encountered: