-
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
pds4.bundle option seems to not travel through enough subdirectories #444
Comments
@lylehuber is this data online somewhere that we can grab it to see what is happening? |
@qchaupds if you are at least able to poke at this to maybe help track down what the issue is before you head out, that would be great! if not, no big deal. |
The crawling of files is a complicated thing and may need an overhaul. I would recommend taking a closer look at all the calls to listFiles() in src/main/java/gov/nasa/pds/tools/validate/crawler/FileCrawler.java {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 128 % grep listFiles ./src/main/java/gov/nasa/pds/tools/validate/crawler/FileCrawler.java to see if it is appropriate to add the recursive boolean flag to the call. Note that not all the current calls are correct. The 2nd call should not be null but a boolean. They all should have the recursive Boolean flag. The function refinedFoundList() also need to have a much closer look. public static Collection listFiles(File directory, To test this, you may need to have a bundle with several sub directories deep similar to the link in this ticket and make sure that all labels are picked up and not just the first 2 levels. Another place to look is where the crawl() function is called. Look to see if the correct recursive flag is passed in or not. {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 168 % vi ./src/main/java/gov/nasa/pds/validate/commandline/options/Flag.java 77 /** {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 171 % vi src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 646 if (config.containsKey(ConfigKey.LOCAL)) { {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 162 % grep -rn "crawl(" src/main/java src/main/java/gov/nasa/pds/tools/label/LocationValidator.java:200: ArrayList ignoreList = new ArrayList(); // List of items to be ignored from result of crawl() function. |
* If no rule is given, threw nullpointer * If/then block should set last directory flag to `true` not false
🐛 Describe the bug
Items that are clearly listed in collection inventories but are a few subdirectories below that inventory are flagged as not
being in a collection.
📜 To Reproduce
Go the bundle at https:pds-atmospheres.nmsu.edu/PDS/data/PDS4/odya_bundle
Attached is the validate output. (Ignore the warning.file.not_referenced_in_label warnings because they were
originally PDS3 EXTRAS files.)
🕵️ Expected behavior
📚 Version of Software Used
2.0.7
🩺 Test Data / Additional context
🏞Screenshots
🖥 System Info
🦄 Related requirements
odya.txt
⚙️ Engineering Details
pds-dev3:$TEST_DATA_HOME/registry
warning.integrity.unreferenced_member
are all in the DATA directory. My guess is the bundle validation is looking for the collection inventory 1 level below the bundle, but that is not required.The text was updated successfully, but these errors were encountered: