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

A expect constraint with id 'metaschema-deprecated-types', matching the item at path '/metaschema-meta-constraints', resulted in an unexpected error. #350

Closed
wandmagic opened this issue Jan 13, 2025 · 6 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@wandmagic
Copy link
Contributor

https://github.com/metaschema-framework/metaschema/blob/3d78ec188f4ccf4cba63f820fc89ff77130e05ed/schema/metaschema/metaschema-module-constraints.xml#L57

this constraint is crashing in the new SNAPSHOT instance
https://github.com/GSA/fedramp-automation/actions/runs/12747585931/job/35525952540?pr=1072#step:7:69

not sure why this is happening, and i can't tell if this is a malformed constraint, or if this is a metaschema java bug, just noticing it and marking it here

@david-waltermire
Copy link
Contributor

david-waltermire commented Jan 13, 2025

I think this is an instance of #323, which has been fixed.

I don't think the liboscal-java and oscal-cli has been advanced to use the latest m-j to get this fix.

@wandmagic
Copy link
Contributor Author

ok glad to hear it!
we will re-run the action on canary branch once this fix is in snapshot build

@aj-stein-gsa
Copy link
Contributor

I was wondering why I couldn't find this earlier today. I just noticed it was in the metaschema spec and docs/website repo, not the Java implementation repo. Transferring it now just to reduce confusion (I was like where is the Java build after clicking in the web interface here and reading GitHub Action configs 😆).

@aj-stein-gsa aj-stein-gsa transferred this issue from metaschema-framework/metaschema Jan 14, 2025
@david-waltermire
Copy link
Contributor

ok glad to hear it! we will re-run the action on canary branch once this fix is in snapshot build

Is this now fixed?

@david-waltermire david-waltermire moved this from To Triage to Blocked in Spec and Tooling Work Board Feb 27, 2025
@david-waltermire david-waltermire added bug Something isn't working question Further information is requested blocked Waiting for an external action to occur labels Feb 27, 2025
@aj-stein-gsa
Copy link
Contributor

Is this now fixed?

I am rebuilding current SNAPSHOTs from develop after merging the m-j, lo-j, o-cli stack and will follow up shortly.

@aj-stein-gsa
Copy link
Contributor

aj-stein-gsa commented Feb 27, 2025

I tested with a local build with the following details and I was unable to reproduce the exception.

% oscal-cli version
oscal-cli 2.5.0-SNAPSHOT built at 2025-02-27 19:16 from branch develop (ba14f61) at Unknown
liboscal-java 5.2.0-SNAPSHOT built at 2025-02-27 19:06 from branch develop (0d8fbdb) at Unknown
oscal v1.1.3 built at 2025-02-27 19:06 from branch b39789e5ab6df36dbe14f481e40113b91fd25f3f (b39789e) at https://github.com/usnistgov/OSCAL.git
metaschema-java 2.2.0-SNAPSHOT built at 2025-02-27T17:56:27+0000 from branch 284-date-time-extraction-functions (e837c3c) at Unknown
metaschema 2.2.0-SNAPSHOT built at 2025-02-27T17:56:27+0000 from branch 7e49638c1ad19fadc0e556cfca90478f3aae9489 (7e49638) at https://github.com/metaschema-framework/metaschema.git
% curl -L -O https://raw.githubusercontent.com/metaschema-framework/metaschema/3d78ec188f4ccf4cba63f820fc89ff77130e05ed/schema/metaschema/metaschema-module-constraints.xml
% oscal-cli metaschema validate-content -m /home/me/metaschema/schema/metaschema/metaschema-module-metaschema.xml /home/me/oscal/src/metaschema/oscal_complete_metaschema.xml -c metaschema-module-constraints.xml
Loading 'file:/private/tmp/mj350_test/metaschema-module-constraints.xml'
Validating 'file:/home/me/oscal/src/metaschema/oscal_complete_metaschema.xml' as XML.
Loading 'file:/home/me/metaschema/schema/metaschema/metaschema-module-metaschema.xml'
Generating Java classes in: /var/folders/_q/y32s9yw56lb81l1sjgtp7k080000gn/T/metaschema-cli-12729131819974803051
Replacing matcher for QName: Q{http://csrc.nist.gov/ns/oscal/metaschema/1.0}METASCHEMA-CONSTRAINTS
Replacing matcher for QName: Q{http://csrc.nist.gov/ns/oscal/metaschema/1.0}metaschema-meta-constraints
Replacing matcher for QName: Q{http://csrc.nist.gov/ns/oscal/metaschema/1.0}METASCHEMA
The file 'file:/home/me/oscal/src/metaschema/oscal_complete_metaschema.xml' is valid.

@github-project-automation github-project-automation bot moved this from Blocked to Done in Spec and Tooling Work Board Feb 27, 2025
@aj-stein-gsa aj-stein-gsa self-assigned this Feb 27, 2025
@aj-stein-gsa aj-stein-gsa removed the blocked Waiting for an external action to occur label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

3 participants