-
Notifications
You must be signed in to change notification settings - Fork 49
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
AbstractArchiver.getFiles returns platform-specific separators (for ZIP files) #129
Comments
For the actual ZIP generation the normalization is done by plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java Line 370 in b9ea3bf
getFiles() though.
|
Ok, the issue was that the check was performed on |
Hi, Sorry but I'm not quite sure if there is a bug in Plexus Archiver or you made it work? If you believe there is a bug would you please share a code snipped that reproduces the issue? I ran one of the tests on Windows and it looks like the resulting ZIP archive is with As for |
@plamentotev Indeed the generated ZIP file is correct (i.e. only contains forward slashes). It is just |
Yes, good point. Actually |
The ZIP file spec says that only forward slashes should be used in entry names (https://stackoverflow.com/a/44387973) but in fact adding a directory on Windows with
ZipArchiver.addFileSet(...)
will lead to backslashes in the entry names returned byAbstractArchiver.getFiles()
.This happens with plexus archiver 4.2.1.
The text was updated successfully, but these errors were encountered: