-
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
Update content validation to fail when the value of an ASCII_Integer is all spaces #9
Comments
Test products attached. Note: aaaTest label should be used as an example to create a minimal_test_product_success.xml label where it will use special constants to allow for a blank field. |
I've just noticed that this issue also affects the ASCII_Real data type - I get the same problem (validation passes, but when I switch to verbosity 1 I get a stream of "Field is blank" INFO level messages, but the product is essentially invalid). Possibly it affects all numeric types? |
De-scoped to work on AIP/SIP Generation software |
Added github9 test case into regression test. |
Updates made per #9 sufficed for character tables, but caused an issue for delimited tables. This update allows for blank fields, but still catches issues when a space character is used instead. According the PDS DSV Standard in the SR (SR 4C.1) "Leading and trailing spaces in a field are considered part of the field" so that is not an issue. Resolves #137
I would change the title of this issue from |
@rchenatjpl that is correct. according to the SR and PDS DSV standard, leading and trailing whitespace are ok. |
What's the final answer - should validate throw or not throw an error for an all-blank ASCII_Integer? My validate throws errors: |
@rchenatjpl invalid for a delimited table (PDS DSV), valid for a character table. |
Thanks, Jordan. Validate v1.22.1 throws an error for both Table_Character and Table_Delimited. pds4_viewer chokes on Table_Character but displays Table_Delimited correctly. |
…#207) * issue_206: Validate incorrectly fails for ASCII_Integer value in Table_Character * Update field value validation check for FixedTableRecord Update FieldValueValidator to not only allow DelimitedTableRecord empty fields (value.isEmpty()), but also "empty" fields for FixedTableRecords, which are space-padded. Also includes merging #206 tests with #9 tests. Resolves #206 * Update integration tests per #206 Co-authored-by: Jordan Padams <jordan.h.padams@jpl.nasa.gov>
When validating the attached, if you run as follows:
One of the info messages is:
The text was updated successfully, but these errors were encountered: