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

Closed
aj-stein-gsa opened this issue Dec 13, 2024 · 1 comment · Fixed by metaschema-framework/metaschema-java#307
Assignees
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

@aj-stein-gsa aj-stein-gsa added the bug Something isn't working label Dec 13, 2024
@david-waltermire david-waltermire moved this from To Triage to In progress in Spec and Tooling Work Board Dec 19, 2024
@david-waltermire david-waltermire self-assigned this Dec 19, 2024
@david-waltermire
Copy link
Contributor

@aj-stein-gsa Would you provide a stack trace for this?

david-waltermire added a commit to david-waltermire/metaschema-java that referenced this issue Dec 19, 2024
@david-waltermire david-waltermire moved this from In progress to In review in Spec and Tooling Work Board Dec 19, 2024
aj-stein-gsa pushed a commit to david-waltermire/metaschema-java that referenced this issue Dec 20, 2024
aj-stein-gsa pushed a commit to metaschema-framework/metaschema-java that referenced this issue Dec 20, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Spec and Tooling Work Board Dec 20, 2024
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
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants