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

OSCAL XML and JSON Schemas incorrectly packaged after generated in build #171

Closed
aj-stein-nist opened this issue Aug 13, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@aj-stein-nist
Copy link
Collaborator

Describe the bug

As reported in usnistgov/oscal-cli#176, there is an issue with that application depending on this library because the requisite JSON and XML schemas generated during the build, but not the path to pull them into resources for the package is incorrect. Therefore, they are not packaged.

Who is the bug affecting?

Any developer relying on liboscal-java

What is affected by this bug?

Any developer relying on liboscal-java to write XML and JSON schemas validation using the embedded schemas for a given OSCAL version.

When does this occur?

Consistently

How do we replicate the issue?

See oscal-cli#176 for how a dependent application will use library functions looking for the embedded schemas for validation functions and fail.

Expected behavior (i.e. solution)

The resources are properly embedded (doesn't work) after generation (that works) at target/generated-resources/oscal, not target/generated-resources/metaschema-schemas.

Other Comments

N/A

@aj-stein-nist aj-stein-nist added the bug Something isn't working label Aug 13, 2023
@aj-stein-nist aj-stein-nist self-assigned this Aug 13, 2023
@aj-stein-nist aj-stein-nist added this to the Ready milestone Aug 15, 2023
@aj-stein-nist aj-stein-nist modified the milestones: Ready, v3.0.1 Release Sep 18, 2023
@aj-stein-nist
Copy link
Collaborator Author

This was fixed in the v3.0.1 release. Updating accordingly.

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
None yet
Development

No branches or pull requests

1 participant