-
Notifications
You must be signed in to change notification settings - Fork 11
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
validate does not work correctly when the path name contains a space #381
Comments
Thanks @msbentley :) |
We think the bug is here. The Java File class doesn't play well with the "%20" so it needs the actual space in the name.
Will check the code in at next opportunity. |
1. Add test resource :src/test/resources/github381 2. Fix bug by relacing "%20" with " " if the directory name contains a space: src/main/java/gov/nasa/pds/tools/util/FileSizesUtil.java Refs: #381 validate does not work correctly when the path name contains a space
Fix bug when directory name contains a space
resolved per #387 |
Hi @jordanpadams @qchaupds whilst this resolves the issue for me on linux, @dcoia740 is still facing issues on the Mac - could you confirm if the fix was tested there, and if it works OK? Thanks! |
For the record, I'm on Catalina 10.15.7, java version "14.0.2" |
@msbentley sorry. looks like we did not. new ticket created and added to the top of the stack. |
Great, thanks @jordanpadams |
thank you! |
🐛 Describe the bug
When the containing path to a PDS4 product contains a space (even if validate is executed within this directory), validate fails with an error related to the detection of the file size.
📜 To Reproduce
Steps to reproduce the behavior:
🕵️ Expected behavior
validate executed normally
📚 Version of Software Used
validate 2.0.7
🩺 Test Data / Additional context
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: