Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7989

Field definitions with choices are not enforced in API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.11.1 CR1
    • System
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      1. Add new fields definition with choices "num1" for Account
      2. (optional) Add another fields definition for User with same name as in step 1.
      3. Use Signup API endpoint and add the new field with value "num2"
      4. See it responds with 201 (ok) and the new account having value "num2" in the new field. Optionally see the new user also has the same field with "num2"
      Show
      Add new fields definition with choices "num1" for Account (optional) Add another fields definition for User with same name as in step 1. Use Signup API endpoint and add the new field with value "num2" See it responds with 201 (ok) and the new account having value "num2" in the new field. Optionally see the new user also has the same field with "num2"

      Creating fields definition with filled out choices for any target (account, user, application) and than creating corresponding instance trough api endpoints with filled out field that is not defined in choices, will be accepted and shown in the view.

      When using "Signup" endpoint with having "Account" as well as "User" fields definition having the same name, it updates both of them. There is no distinction between which definition is for the Account and which for Admin user when sending "Signup" request. Making potential problems when having different choices.

              Unassigned Unassigned
              rhn-support-azgabur Alexander Zgabur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: