-
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
Validation failures are contingent on presence of <file_size>
attribute in <File>
class
#684
Comments
Is it expected that NASA-PDS/pds4-jparser#89 would have addressed the case where all three of |
@cgobat looks like a bug. we will have a look. |
@jordanpadams thanks for the speedy resolution to this! Question about validate's release model: do fixes like this get backported to current versions, or do we just wait for the next release/patch version? |
@cgobat you can either wait for the next stable release (in 2-4 weeks) or you can try out the "unstable" SNAPSHOT version. the "unstable" version should work fine, but it has not yet been rigorously tested. |
@jordanpadams Has this been fixed? The latest snapshot still has this bug (using File_Area_Observational/File/file_size as the size of the first object) on the attached.
|
@rchenatjpl I think the issue you are seeing is tightly coupled to this one, but slightly different. created a new bug here: #781 |
Checked for duplicates
Seems closely related to #616, but the problem persists, despite closure of that issue.
🐛 Describe the bug
@katecrombie and I have been unable to figure this out. I am not sure if it's a bug with validate, or the IM, or what, but we figured this was a good place to start.
The calibration software for one of the Lucy mission's instruments uses plain-text calibration files that contain a variety of parameters and coefficients used by the processing pipeline. The file contents are organized in a reliable/well-structured way, and can be fully described by a series of
Table_Delimited
andStream_Text
classes in a PDS4 label.However, if an overall
<file_size>
attribute is is included in the<File>
class (as is standard practice), the label fails validation due to the following error(s):Each individual data object (
Table_Delimited
orStream_Text
) has a correctly-defined<offset>
and<object_length>
, and simply omitting the<file_size>
enables it to pass validation without complaint.🕵️ Expected behavior
I expected that inclusion/omission of the
<file_size>
attribute in the<File>
class in the<File_Area_Observational>
section would not have an impact on validation failure/passage.📜 To Reproduce
Table_Delimited
and/orStream_Text
objects<File>
class, include a<file_size>
attribute (withunit="byte"
) with a value equal to the product's file size, in bytesvalidate
, and note failure<file_size>
attribute from the label completelyvalidate
, and note passing result🖥 Environment Info
Operating System: Issue replicated on both MacOSX and Ubuntu 20.04
📚 Version of Software Used
validate
versions 3.1.1 and 3.2.0🩺 Test Data / Additional context
Attached is a zip file containing a dummy data product of the same format as described, with two corresponding labels whose only differences are the minor version number of their VID (so that both can be validated simultaneously), and whether or not the
<file_size>
attribute is present on line 61. A validation report showing that one passes while the other fails is also included.🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: