Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16265

Getting config of page node that contains a choice collector does not return the associated outcomes

    Details

    • Target Version/s:
    • Rank:
      1|i011cf:

      Description

      Bug description

      The endpoint realm-config/authentication/authenticationtrees/nodes/PageNode/<ID> when the id is a page node that contains a choice collector returns an empty array for the outcomes and not the outcomes associated with the ChoiceCollector node.

      How to reproduce the issue

      Create a tree with a page node that contains a choice collector and attempt to get information about the node using the above endpoint. Observe this response:

       

      {
           "_id""0bdc2a94-a926-484d-9378-b3f3dfc9a4d1",
           "_rev""1982097382",
           "pageDescription": {},
           "nodes": [
              
      {             "_id""d9e38663-5aa5-4f31-8555-c4dd0fd883d0",             "nodeType""ChoiceCollectorNode",             "displayName""Choice Collector"         }
          ],
           "pageHeader": {},
           "_type": {"_id""PageNode", "name""Page Node", "collection"true},
           "_outcomes": []
       }.
      For comparison, here is the response from a page node that has a Password Collector and a Data Store Decision node inside of a page node:
      {
           "_id""d92a4309-d58d-42cd-afa8-2cb1e2147b75",
           "_rev""-1321313746",
           "pageDescription": {},
           "nodes": [
               
      {             "_id""9af8e4b6-54cc-4eb2-825e-7e8ab063b01b",             "nodeType""PasswordCollectorNode",             "displayName""Password Collector"         }
      ,
               
      {             "_id""78197fd7-df96-4ce7-b8a8-d2987fb80296",             "nodeType""DataStoreDecisionNode",             "displayName""Data Store Decision"         }
          ],
           "pageHeader": {},
           "_type": {"_id""PageNode", "name""Page Node", "collection"true},
           "_outcomes": [
               {"id""true", "displayName""True"},
               {"id""false", "displayName""False"}
           ]
       }

       

       

       

      I believe this discrepancy in the responses is what is causing this bug: https://bugster.forgerock.org/jira/browse/OPENAM-15006

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabor.melkvi Gabor Melkvi
                Reporter:
                michael.wong Michael Wong
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: