You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a profile, trying to remove a control's nested part throws an error stating 'Unable to apply the remove targeting control "control-id" at "xpath to remove element". The remove did not match a valid tag'. This error occurs when attempting to resolve profiles.
Who is the bug affecting?
OSCAL-CLI users
What is affected by this bug?
Cannot resolve profile.
When does this occur?
OSCAL-CLI users when trying to resolve a profile but remove sub-parts of a control.
rene2mt@1556552G-M30682:/mnt/c/oscal-cli/oscal-cli-0.2.0/bin$ ./oscal-cli profile resolve -t=xml /mnt/c/fedramp-automation/src/content/baselines/rev4/xml/FedRAMP_rev4_LI-SaaS-baseline_profile.xml > test.xml
Unable to resolve profile 'file:///mnt/c/fedramp-automation/src/content/baselines/rev4/xml/FedRAMP_rev4_LI-SaaS-baseline_profile.xml'. Unable to apply the remove targeting control 'ac-2' at '/profile/modify[1]/alter[2]/remove[1]'. The remove did not match a valid target
rene2mt@1556552G-M30682:/mnt/c/oscal-cli/oscal-cli-0.2.0/bin$
Expected behavior (i.e. solution)
Profile should resolve with specified control's parts (and/or sub-parts) removed. For example, the following would be removed from the resolved profile.
<remove by-id="ac-2_smt.b"/>
Other Comments
The same profile(s) that cause error with the OSCAL-CLI resolve successfully with the build-cli.
The text was updated successfully, but these errors were encountered:
Describe the bug
In a profile, trying to remove a control's nested part throws an error stating 'Unable to apply the remove targeting control "control-id" at "xpath to remove element". The remove did not match a valid tag'. This error occurs when attempting to resolve profiles.
Who is the bug affecting?
OSCAL-CLI users
What is affected by this bug?
Cannot resolve profile.
When does this occur?
OSCAL-CLI users when trying to resolve a profile but remove sub-parts of a control.
How do we replicate the issue?
Expected behavior (i.e. solution)
Profile should resolve with specified control's parts (and/or sub-parts) removed. For example, the following would be removed from the resolved profile.
Other Comments
The same profile(s) that cause error with the OSCAL-CLI resolve successfully with the build-cli.
The text was updated successfully, but these errors were encountered: