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

Configuration section of Policies in UI malfunctions when API is updated with invalid policy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.7 ER1
    • 2.6 CR1
    • System
    • 5
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      1. Open API Integration page
      2. Add new policy (in my case I added TLS Client Certificate Validation)
      3. Edit new policy
      4. Configure it with incorrect information (in case of TLS validation it is enough to insert any kind of text to certificate whitelist)
      5. Click Update Policy button
      6. Click Update & test in Staging Environment button
      7. Now you can see empty policy section. At this point when you list all chains for API with a request to '/admin/api/services/ {service_id}

        /proxy/policies.json' you will get all policies including one, that was wrongly configured.

      8. Click Update & test in Staging Environment button one more time and policy is deleted from policy chain (request to policices endpoint confirms this)
      Show
      Open API Integration page Add new policy (in my case I added TLS Client Certificate Validation) Edit new policy Configure it with incorrect information (in case of TLS validation it is enough to insert any kind of text to certificate whitelist) Click Update Policy button Click Update & test in Staging Environment button Now you can see empty policy section. At this point when you list all chains for API with a request to '/admin/api/services/ {service_id} /proxy/policies.json' you will get all policies including one, that was wrongly configured. Click Update & test in Staging Environment button one more time and policy is deleted from policy chain (request to policices endpoint confirms this)
    • 3scale 2019-10-14

    Description

      When new policy is added to the policy chain in API Integration page ('/apiconfig/services/

      {service_id}

      /integration') and it is incorrectly configured, whole Policy section crashes. All policies disappear, only Add policy button will remain visible to user (when clicked periodically, it will change to Cancel button and back).

      If the user clicks Update & test in Staging Environment button once more time, the policy will disappear from the policy chain.
      The only way how to fix this crashed section is to revisit integration page (the wrongly configured policy will appear without any previously configured settings).

      Attachments

        1. after_service_submit.png
          after_service_submit.png
          67 kB
        2. before_service_submit.png
          before_service_submit.png
          75 kB
        3. image-2019-09-07-13-46-38-524.png
          image-2019-09-07-13-46-38-524.png
          70 kB
        4. image-2019-09-07-13-51-59-153.png
          image-2019-09-07-13-51-59-153.png
          74 kB
        5. listed_policies.png
          listed_policies.png
          38 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsmolar Jakub Smolár
              Didier Di Cesare Didier Di Cesare (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: