Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-1419

[RFE] Add a configuration that "REJECT" when calling AAP API with duplicate field.

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.4
    • controller
    • False
    • Hide

      None

      Show
      None
    • False

      1. What is the nature and description of the request?

      > Add a configuration that "REJECT" when calling AAP API with duplicate field.

      2. Why does the customer need this? (List the business requirements here)

      > The Customer security team was reviewing API security. The security team wants to ensure that the AAP API "REJECT" the call when called with duplicate fields/keys.

       

      3. How would you like to achieve this? (List the functional requirements here)

      > By adding an option on the UI or configuration in the file.

       

      Additional Info: 

      I Checked and could not, and there are no handles for duplicate keys.

       

      >>> import json 
      >>> 
      >>> def parse_json_with_duplicate_keys(json_string): 
      ... return json.loads(json_string) 
      ... 
      >>> json_string = '{"a": 1, "b": 2, "a": 3}' 
      >>> result = parse_json_with_duplicate_keys(json_string) 
      >>> print(result) {'a': 3, 'b': 2}
       

       

              bcoursen@redhat.com Brian Coursen
              rhn-support-pghadge Prakash Ghadge
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: