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

Profile Resolution Dropping Parameter Select Content #771

Closed
brian-ruf opened this issue Oct 16, 2020 · 1 comment
Closed

Profile Resolution Dropping Parameter Select Content #771

brian-ruf opened this issue Oct 16, 2020 · 1 comment

Comments

@brian-ruf
Copy link
Contributor

Describe the bug

When generating a resolved profile catalog, where the original control includes a parameter with a select assembly, the select assembly and its internal content is dropped.

For example, in the 800-53r4 OSCAL Catalog, AC-7, parameter #3 appears as follows:

         <param id="ac-7_prm_3">
            <select>
               <choice>locks the account/node for an <insert param-id="ac-7_prm_4"/>
               </choice>
               <choice>locks the account/node until released by an administrator</choice>
               <choice>delays next logon prompt according to <insert param-id="ac-7_prm_5"/>
               </choice>
            </select>
         </param>

If AC-7 is called by a profile, the resolved profile catalog incorrectly reflects the following for the above:

         <param id="ac-7_prm_3" />

Who is the bug affecting?

Everyone using the profiler resolver transform

What is affected by this bug?

Incorrect representation of parameters containing select content.

When does this occur?

Every time the profile resolver is used.

How do we replicate the issue?

  1. Create a profile that calls a control containing a parameter with a select statement.
    (See attached test profile - much change .txt back to .xml for processing)
    profile-test.txt

  2. Run the profiler resolver transform

  3. Observe the control in the resolved profile catalog.

Expected behavior (i.e. solution)

The profile resolver should duplicate all content from inside the parameter assembly to the resolved profile catalog, including the select assembly.

@david-waltermire
Copy link
Contributor

This issue looks like it was addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants