-
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
Validate throws incorrect overlap error when first Field_Bit has length 1 #392
Comments
@radiosci we will take a look! btw, per the template title, feel free to remove the |
@radiosci Could you post the error message you got and the error you think you should get. The current snapshot of validate today shows this message:
|
Complete output from Validate run is below. It says the current field ends at 4, the next field starts at 3. I was expecting no error message. rsimpson% validate test1.xml PDS Validate Tool Report Configuration: Parameters: Product Level Validation Results FAIL: file:/Users/rsimpson/Data/DOCUMENT_BUNDLE/WORKING/DSN_REDR/VALIDATE_BUG/test1.xml Summary: 1 error(s) Product Validation Summary: Referential Integrity Check Summary: Message Types: End of Report |
@radiosci Thank you. I think we have a solution. The label now validates OK. Will check the code in soon. |
1. Add test resource : src/test/resources/github392 2. Add logic to check for data_type of field before making the offset checks : src/main/java/gov/nasa/pds/tools/validate/content/table/FieldValueValidator.java 3. Add 3 new tests : src/test/resources/features/validate.feature Refs: #392 Validate throws incorrect overlap error when first Field_Bit has length 1
Fix bug when checking for offset for fields that are not of BIT type
1. Use enum type defined in FieldType instead of hard-coded string : src/main/java/gov/nasa/pds/tools/validate/content/table/FieldValueValidator.java Refs: #392 Validate throws incorrect overlap error when first Field_Bit has length 1
Use enum type defined in FieldType instead of hard-coded string
π Describe the bug
π To Reproduce
Steps to reproduce the behavior:
π΅οΈ Expected behavior
π Version of Software Used
π©Ί Test Data / Additional context
πScreenshots
π₯ System Info
field_bit_error.tar.gz
π¦ Related requirements
βοΈ Engineering Details
The text was updated successfully, but these errors were encountered: