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

Safely handle undefined fields in profile resolution #484

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

kylelaker
Copy link
Contributor

Various fields in the OSCAL specification are not required (these are
fields that allow [0, 1] elements). In many cases, we were expecting
those fields to be present. When loading the NIST SP 800-53 rev5
profiles in our viewer, they would fail to render because we required
modify to be present.

This makes some minor changes to profile resolution in order to prevent
similar issues; a more holistic approach to resolution is certainly
still required.

@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team July 7, 2022 12:40
Various fields in the OSCAL specification are not required (these are
fields that allow [0, 1] elements). In many cases, we were expecting
those fields to be present. When loading the NIST SP 800-53 rev5
profiles in our viewer, they would fail to render because we required
modify to be present.

This makes some minor changes to profile resolution in order to prevent
similar issues; a more holistic approach to resolution is certainly
still required.
@kylelaker kylelaker force-pushed the feature/fix-errors-in-new-cdef branch from 3e643fc to 6298838 Compare July 7, 2022 12:44
@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team July 7, 2022 21:24
@Bronstrom Bronstrom merged commit d17dc01 into develop Jul 7, 2022
@Bronstrom Bronstrom deleted the feature/fix-errors-in-new-cdef branch July 7, 2022 21:26
@kylelaker kylelaker added the bug Something isn't working label Aug 29, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants