-
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 labels error.sub_directory.unallowed_name as a warning #356
Comments
@tbarnes4 apologies for the delay in triaging of this ticket. definitely agree this needs to be updated. adding to the queue and will hopefully be fixed this next sprint |
…/LF is included in field value, modify unallowed name message to be warning instead of error 1. Add test artifact for github356 to src/test/resources. Cucumber requires a directory for a test to exist eventhough the test uses another input directory 2. Add test artifact for github357 to src/test/resources 3. Add test artifact for github364 to src/test/resources 4. Modify from error to warning for sub_directory.unallowed_name flag in ProblemType.java 5. Add logic to check for CR/LF in field value for Table_Delimited table and add ogic to break out of loop if error is fatal to avoid reporting same error in FieldValueValidator.java 6. Add logic to allow '.XML' to be an extension for a label in LabelValidationRule.java 7. Modify message to include: "with the extension '.xml' or '.XML'" in PDS4Problems.java 8. Add debug statements and logic to report warning if read too many records to TableDataContentValidationRule.java 9. Add BAD_EXTENSION type to support new errors detected to StepDefs.java 10. Add new tests to validate.feature Refs: #355 Improve validate reporting when trying to read a null row #356 validate labels error.sub_directory.unallowed_name as a warning #357 Validate allows CRLF within a Table_Delimited field #364 validate does not allow ".XML" as an extension for a label file
…/LF is included in field value, modify unallowed name message to be warning instead of error 1. Add test artifact for github356 to src/test/resources. Cucumber requires a directory for a test to exist eventhough the test uses another input directory 2. Add test artifact for github357 to src/test/resources 3. Add test artifact for github364 to src/test/resources 4. Modify from error to warning for sub_directory.unallowed_name flag in ProblemType.java 5. Add logic to check for CR/LF in field value for Table_Delimited table and add ogic to break out of loop if error is fatal to avoid reporting same error in FieldValueValidator.java 6. Add logic to allow '.XML' to be an extension for a label in LabelValidationRule.java 7. Modify message to include: "with the extension '.xml' or '.XML'" in PDS4Problems.java 8. Add debug statements and logic to report warning if read too many records to TableDataContentValidationRule.java 9. Add BAD_EXTENSION type to support new errors detected to StepDefs.java 10. Add new tests to validate.feature Refs: #355 Improve validate reporting when trying to read a null row #356 validate labels error.sub_directory.unallowed_name as a warning #357 Validate allows CRLF within a Table_Delimited field #364 validate does not allow ".XML" as an extension for a label file
@tbarnes4 this should be fixed in our latest release: https://github.com/NASA-PDS/validate/releases/tag/v2.0.7 |
@jordanpadams There are now no ERRORs nor WARNINGS. Is this still an issue that is being reported? |
@jpl-jengelke I think this check only takes affect when the
|
@jordanpadams It will also display if you do the |
@tbarnes4 thanks! |
🐛 Describe the bug
This a very minor typographical bug. As of version 2 of the validate tool, the sub_directory_unallowed_name error was made into a warning for instances of a directory named 'data' or 'document' instead a collection. I would expect the error code "error.sub_directory.unallowed_name" should probably be "warning.sub_directory.unallowed_name" instead. It is properly reported as a WARNING in the validation results and summary sections.
In the Validation Results section of the report:
In the Summary section of the report:
📜 To Reproduce
Steps to reproduce the behavior:
🕵️ Expected behavior
I would expect the error code "error.sub_directory.unallowed_name" should probably be "warning.sub_directory.unallowed_name" instead.
📚 Version of Software Used
validate 2.0.6
🩺 Test Data / Additional context
Ex: https://pdssbn.astro.umd.edu/holdings/pds4-epoxi_mri-v1.0/hartley2_photometry/SUPPORT/dataset.shtml
🦄 Applicable requirements**
The text was updated successfully, but these errors were encountered: