-
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
Remove File Type Mismatch Workaround #158
Comments
It looks like the upstream issue has been closed (as the underlying bug has been resolved) but the updated version of the submodule will not be available until usnistgov/oscal-content tags a v1.0.1 release. |
This has been fixed on the For reference, the workaround to remove is oscal-react-library/src/components/oscal-utils/OSCALLinkUtils.js Lines 3 to 12 in 8836913
All references will need to be updated as well. Anything that tests specifically that function alone (or its behavior of rewriting URLs ending in |
@kylelaker Ultimately referencing a XML OSCAL file from a JSON OSCAL file's import statement is valid and should be handled by our tool. We can't count on every OSCAL file existing in both XML and JSON. Having the tool simply change the ".xml" to ".json" in the file is a fair work-around specifically for the NIST issue. Ultimately the tool should recognize the XML extension and convert the XML file to JSON, then process it. I suppose as a shortcut, it could look for a JSON version as described in the workaround above before converting; and only convert if no JSON file was found. In any case, I believe this issue, as written, has been addressed and should be closed. A new issue should cover the more complete functionality. |
Closing as discussed with @kylelaker |
See:
We should remove the workarounds when those issues have been fixed.
The text was updated successfully, but these errors were encountered: