-
Notifications
You must be signed in to change notification settings - Fork 402
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
Bug in w3c/epubcheck/src/main/java/com/adobe/epubcheck/util/PathUtil.java #1181
Labels
Milestone
Comments
rdeltour
added
status: accepted
Ready to be further processed
type: bug
The issue describes a bug
labels
Aug 24, 2020
Thanks for the report 👍, I'll look into it tentatively for the next maintenance release! |
rdeltour
added a commit
that referenced
this issue
Feb 26, 2021
The previous implementation of the `removeWorkingDirectory` utility method was quite brutal and replaced all occurences of the "user.dir" system property in paths, even when found in the middle of the path. The new implementation only replaces the user directory when it occurs at the beginning of the path, and does nothing when the user directory is set to the root directory ("/"). Tests included. Fixes #1181
rdeltour
added
status: has PR
The issue is being processed in a pull request
and removed
status: accepted
Ready to be further processed
labels
Feb 26, 2021
rdeltour
added a commit
that referenced
this issue
Feb 26, 2021
The previous implementation of the `removeWorkingDirectory` utility method was quite brutal and replaced all occurences of the "user.dir" system property in paths, even when found in the middle of the path. The new implementation only replaces the user directory when it occurs at the beginning of the path, and does nothing when the user directory is set to the root directory ("/"). Tests included. Fixes #1181
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
It is valid to have user.dir value set to root ("/") (and this happens when subprocesses are used to launch the epubcheck via the commandline) but this routine then breaks all paths:
By replacing all "/" chars in path to "." chars. Given "." chars are valid in filenames and directory names, this replacement is unfixable.
Please make this routine robust to all possible legal values for user.dir
The text was updated successfully, but these errors were encountered: