-
Notifications
You must be signed in to change notification settings - Fork 12
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 fails to read files on Windows systems after Internal Reference check updates (#308) #809
Comments
@jennifergward it doesn't look like the CLIPPER SCH/XSD are posted online yet. Can you provide those as well? |
@jennifergward for v3.4.1, if I remove the CLIPPER references, and validate, it appears to execute successfully:
My guess is it may have to do with your catalog file. Can you also supply that? |
When I remove the Clipper references, I get the attached error in report_noclipper.txt. I'm using your same command above with version 3.4.1. Attached is my catalog file and also the Clipper dictionary. Thanks for the help! |
@jennifergward can you confirm you have tested this with the latest v3.4.1 of validate? I am having difficulty replicating this error. |
@jordanpadams Confirmed. We also tested v3.4.1 on other files and bundles, and confirmed that this issue is bigger than the EC file. Attached are validate reports after running 3.1.1 vs. 3.4.1 on a bundle. We're thinking this is a Windows issue. |
Thanks @jennifergward we will take a look. |
When using Path.of() we need to pass a URI on a Windows machine, not the Path. Resolves #809
@jennifergward I have a beat on a fix. Just awaiting a review from someone on the team and we should be good to go. Will tag and release with the update as soon as we have it. |
@jennifergward can you try out the latest SNAPSHOT of validate and let me know if it works? https://github.com/NASA-PDS/validate/releases/tag/v3.5.0-SNAPSHOT |
@jordanpadams It still doesn't work. |
@jennifergward copy! Sorry about that. I wasn't running it exactly as you were. But looks like a different error, which is great! :-) |
@jennifergward what version of java are you running?
|
@jordanpadams Using a different machine with a newer version produces the old errors from my initial ticket |
@jennifergward ok. I have been testing all of this on a windows virtual machine and it works for some reason. I will revisit in the morning and see if there is something I’m missing. |
Looks like I may have goofed. I see validate version 3.1.1 in this last validation report. I'll double-check in the morning.
…________________________________
From: Jordan Padams ***@***.***>
Sent: Monday, February 12, 2024 6:32:50 PM
To: NASA-PDS/validate ***@***.***>
Cc: Ward, Jennifer ***@***.***>; Mention ***@***.***>
Subject: Re: [NASA-PDS/validate] Validate fails to read files on Windows systems after Internal Reference check updates (#308) (Issue #809)
@jennifergward<https://github.com/jennifergward> ok. I have been testing all of this on a windows virtual machine and it works for some reason. I will revisit in the morning and see if there is something I’m missing.
—
Reply to this email directly, view it on GitHub<#809 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR3WF5NQAUBGPEBXAEZQKPTYTKRCFAVCNFSM6AAAAABBYU274GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZG44DENJUGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@jennifergward I think something weird may be happening here. Can you verify if you have a It appears your |
|
@jordanpadams Is Java 11 required to run the newest validate? |
@jennifergward Yes. Unfortunately, Java 8 was end of life in 2019, so we upgraded ~1-2 years ago. We just started using some of the new methods in Java 11+ in the past 6-12 months, which is why I believe you encountered this exception. For more information on the system requirements see: https://nasa-pds.github.io/validate/install/index.html#java-runtime-environment |
Checked for duplicates
Yes - I've already checked
🐛 Describe the bug
For a CSV containing multiple tables, validate 3.1.1 reports the following error on a table that we think is properly defined in the label:
We tried to check with validate 3.4.1 to see if this issue has been fixed already, but we get another error:
🕵️ Expected behavior
We think the CSV and XML are valid and validate shouldn't be reporting any errors.
📜 To Reproduce
🖥 Environment Info
📚 Version of Software Used
Validate v3.1.1 and Validate v3.4.1
🩺 Test Data / Additional context
validate_bug.zip
🦄 Related requirements
🦄 #308
User also indicated seeing this on the discussion board: #811
⚙️ Engineering Details
After some investigation and testing on Windows, we started getting these errors on Windows when trying to resolve a path:
which can be traced to https://github.com/NASA-PDS/validate/blob/main/src/main/java/gov/nasa/pds/tools/validate/CrossLabelFileAreaReferenceChecker.java#L19
Per https://stackoverflow.com/questions/43972777/java-nio-file-invalidpathexception-illegal-char-at-index-2, on Windows, we need to translate the URL to a URI vs. a path.
I&T
TestRail Test ID: T8681197
The text was updated successfully, but these errors were encountered: