Skip to content
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 has DEBUG level, but oscal-cli does not support it #92

Open
aj-stein-gsa opened this issue Dec 13, 2024 · 0 comments
Open

Metaschema has DEBUG level, but oscal-cli does not support it #92

aj-stein-gsa opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aj-stein-gsa
Copy link
Contributor

Describe the bug

On recent development versions of oscal-cli (and the 2.4.0 release), constraints with level="DEBUG" fail with a warning that level is not supported. We need to investigate.

Who is the bug affecting

Developers adding, changing, removing and using constraints with non-default levels for debugging.

How do we replicate this issue

  1. Add a constraint with that level and see error reporting that DEBUG is not supported.
 % ~/opt/bin/oscal-cli --version
oscal-cli 2.5.0-SNAPSHOT built at 2024-12-12 07:03 from branch develop (9f449aa) at Unknown
liboscal-java  built at 2024-12-11 15:12 from branch develop (de0fe18) at https://github.com/metaschema-framework/liboscal-java
oscal v1.1.3 built at 2024-12-11 15:12 from branch develop (b123c11) at https://github.com/usnistgov/OSCAL.git
metaschema-java 2.2.0-SNAPSHOT built at 2024-12-12T06:54:11+0000 from branch feature/282-node-functions (8f88271) at Unknown
metaschema 2.2.0-SNAPSHOT built at 2024-12-12T06:54:11+0000 from branch b6601f7430f83f1a53a11bf32575b69e131bc912 (b6601f7) at https://github.com/metaschema-framework/metaschema.git
oscal-cli -validate ... -c file_with_debug_constraint.xml
Unexpected error occured: Unknown level: DEBUG

(I will add unit test and test cases later, and update the issue with a comment.)

Expected behavior (i.e. solution)

Successfully process and evaluate the constraints (per the current version of the draft specification in main.

Other comments

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

1 participant