-
Notifications
You must be signed in to change notification settings - Fork 15
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
Metaschema Validation Has Findings For Valid Component #209
Comments
This appears to relate to the port range constraint in OSCAL. The |
It's actually these two tests that fail:
I've tested both of these, and they work as expected:
|
Question: if Indeed since the (non-negative) integer form is already validated separately, one might argue this rule should pass if
fails only if the numbers are given 'correctly' (as integers), but wrong (as out of order). But if either is missing or not comparable, we get a failure on its value, not this error. nb |
I will review the underlying metaschema-java code, but I do not believe Metapath (as implemented in the Java version; the spec is very underdefined in this bit 😆) has |
Cool.
which tests true only if Not advancing a position on whether to prefer such a thing if |
Describe the bug
Valid XML component-definitions are returning findings.
Add the following to
src/test/resources/content/component-def.xml
Add the following test function to
src/test/java/gov/nist/secauto/oscal/java/ExamplesTest.java
:The following log output is shown:
Who is the bug affecting?
Anyone trying to validate component-definitions. Presumably this applies to other OSCAL types too.
What is affected by this bug?
Findings are returned despite valid input. Doesn't matter if the input is JSON, YAML, or XML.
When does this occur?
See example
How do we replicate the issue?
Please see detailed unit test above.
Expected behavior (i.e. solution)
This particular example should return no findings, as it meets all the metaschema requirements.
Other Comments
The text was updated successfully, but these errors were encountered: