-
Notifications
You must be signed in to change notification settings - Fork 183
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
Profile resolver not applying alterations to parameters #1859
Comments
Let's see to it that the The lapse (or bug if you like) is in XSLT https://github.com/usnistgov/OSCAL/blob/develop/src/utils/resolver-pipeline/oscal-profile-resolve-modify.xsl, where a template matching param elements (
control//* (
set-param which is why that is a workaround.)
Solution is to see to it that the |
BTW if (or to the extent that) this gives rise to implementation questions such as what happens when compounding settings and alterations on a single parameter ... another reason to build unit tests ... and if this is tricky, maybe forbidding addressing parameters with |
The XSLT changes in this pull request should already fix usnistgov#1859. This commit adds a relevant test scenario as evidence.
I believe #1549 fixes this issue, and I added a relevant test scenario in that pull request. |
Fantastic! thanks! |
The XSLT changes in this pull request should already fix usnistgov#1859. This commit adds a relevant test scenario as evidence.
The XSLT changes in this pull request should already fix #1859. This commit adds a relevant test scenario as evidence.
The XSLT changes in this pull request should already fix #1859. This commit adds a relevant test scenario as evidence.
This issue is probably safe to close after a sanity check. |
Describe the bug
When using the XSLT profile resolver (v1.0.4), the produced resolved profile catalogs does not apply the changes to the
param
specified in the profile.Who is the bug affecting
FedRAMP and anyone using XSLT profile resolver v1.0.4
What is affected by this bug
Tooling & API
How do we replicate this issue
NOTE - the issue is when using XSLT profile resolver (version 1.0.4)
prop
to parameters as follows:Expected behavior (i.e. solution)
Notice that it works when the
prop
elements are added via<set-parameter param-id="parameter-ids">...</set-parameter>
. This is the approach in gist https://gist.github.com/Rene2mt/de339c61034da0b81860ab5c13bc702a#file-sample-profile-xml-L54-L1868.BUT it does not work when trying to use
<alter control-id="control-id"><add position="starting" by-id="param-id">...</add></alter>
. This is the approach in gist https://gist.github.com/Rene2mt/de339c61034da0b81860ab5c13bc702a#file-sample-profile-xml-L1872-L4256This should work according to the profile resolution spec.
Other comments
No response
Revisions
No response
The text was updated successfully, but these errors were encountered: