-
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
Requirement #308 does not appear to be working for checking referential integrity from products to others in the bundle #432
Comments
β¦n the bundle 1. Add test resources : src/test/resources/github432 2. Add debug statements : src/main/java/gov/nasa/pds/tools/util/ReferentialIntegrityUtil.java 3. Modify uppercase 'ERROR' to lowercase 'error' so as not to confuse the log file : src/main/java/gov/nasa/pds/tools/validate/rule/pds4/LabelValidationRule.java 4. Add debug statements and printing of warning message when the exceptions.get(location) call returns null : src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 5. Add debug statements and checking for null-ness before calling toString() to avoid NullPointerException : src/main/java/gov/nasa/pds/validate/report/Report.java Refs: #432 Missing referential integrity checks from browse products to others in the bundle
see comments here for more details: #440 (review) |
Here are bugs I've encountered. I ran validate using
I also tried running it on the specific collection where I had spotted LID errors:
Here's an example browse label from that collection:
Line 19 points to an incorrect LID, but Validate does not report any of these:
It passed all of the browse labels (the one fail refers to a .DS_Store file). So, unlike the (The LID |
The check being requested here was purposely turned off by another user request #368 and here is the code that got me there: validate/src/main/java/gov/nasa/pds/tools/util/ReferentialIntegrityUtil.java Lines 303 to 308 in 56491e7
How do you want to resolve conflicting user requests here? |
Will someone who understand PDS well enough please tell me if there should be 1 or 2 warning messages for the tiny test data set attached to this ticket (see val308b.zip at the top of this issue). I found what look like 2 using |
@al-niessner you are correct. in an ideal world, we would have some AI algorithm say "these bundle LIDs look kind of a alike, but are different. did you want them to be the same?", but until openAI does out validation, we are stuck with explicit checks. |
@mace-space can you try out the latest SNAPSHOT with this fix in place to see if it catches the error? https://github.com/NASA-PDS/validate/releases/tag/v3.4.0-SNAPSHOT |
@al-niessner @jordanpadams: validate (Release Date: 2023-11-17 21:11:37) caught that browse-ion-moments/ION_MOM.xml incorrectly referenced |
The current level of filtering ignored the second because it does not
appear to be part of the bundle by name: mess-mag instead of vg1-pls. Non
bundle items are deferred to validate-refs.
@jordanpadams is this sufficient?
β¦On Fri, Nov 17, 2023, 21:20 rchenatjpl ***@***.***> wrote:
@al-niessner <https://github.com/al-niessner> @jordanpadams
<https://github.com/jordanpadams>: validate (Release Date: 2023-11-17
21:11:37) caught that browse-ion-moments/ION_MOM.xml incorrectly referenced
urn:nasa:pds:vg1-pls-sat:data-ion-moments-96sec:nonexistentxxx
but missed that data-ion-moments-96sec/ION_MOM.xml incorrectly referenced
urn:nasa:pds:mess-mag-kt17-model-residuals:document:xxxnoexistent
β
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIUBIQ2MQW6PRJ2BD2AL53YFBASLAVCNFSM5GYLGUVKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBRG4ZTQNRUHA3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@al-niessner looks like we have success. Thanks! |
Sorry for my delay in responding, in the middle of a move. I will look into this more early next week. Thanks for all your help. |
@jordanpadams I'm seeing exceptions of the following kind when I run validate-3.4.0-SNAPSHOT:
Does this indicate I need to update java?
|
@mace-space hmmm. not sure what is going on here. let me check some things out. |
@mace-space how are you executing validate? I can't seem to replicate on our test data sets. |
I'm running: |
I've validating Voyager Jupiter raw radio science bundles and encountered a related error to do with referential integrity checking, so thought I would add details to this issue. (But if you would like me to open another issue, I'm happy to do so). In the bundle XMLs, it states:
This should be |
@mace-space thanks for the inputs. we actually have never validated Per the IM Spec, it looks like |
Created new SCR: https://github.com/NASA-PDS/PDS4-CCB/issues/7 |
Thanks very much. Is NASA-PDS/PDS4-CCB a private repo? I can't access your link |
@mace-space yes. I can add you to the DDWG Team. |
I would think that all CCB reps (including @mace-space) should be added to that repo. |
@jordanpadams Does the referencial checking for all lid(vid)_reference found in a label, cross checking at least within the realm (-R or --rule) validate is running on? I have an instance where the SB dictionary reference is not being flagged as an error when I'm running validate on a bundle to contains two collections, where processed products are referencing the raw products they were processed from. The LIDVID below does not exist.
|
it should... would you mind creating a ticket for this with the example you are referring to? |
@tbarnes4 βοΈ |
It looks like the issue I described above is still happening. @jordanpadams shall I open a new issue? |
@mace-space yes please. If you wouldn't mind providing a specific data set example, that would be really helpful. thanks! |
1 similar comment
@mace-space yes please. If you wouldn't mind providing a specific data set example, that would be really helpful. thanks! |
π Describe the bug identified during I&T
Caught by @rchenatjpl here: #308 (comment)
Looks like #308 implementation was refactored out.
π₯Ό Related Test Case(s)
π : Related issues
β Additional Details
π To Reproduce
See comment referenced above, in the attached test data below, validate does not catch browse product's reference to a LID in this bundle doesn't exist.
π΅οΈ Expected behavior
Validate should catch invalid reference.
π Version of Software Used
π©Ί Test Data / Additional context
https://github.com/NASA-PDS/validate/files/7414791/val308b.zip
πScreenshots
π₯ System Info
π¦ Related requirements
π¦ #308
βοΈ Engineering Details
The text was updated successfully, but these errors were encountered: