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

type change of "policies_config" in /admin/api/services/{service_id}/proxy.json

    XMLWordPrintable

Details

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      GET /admin/api/services/{service_id}/proxy.json in 2.11 candidate3 returns different results in comparison of 2.10. type of "policies_config" value changed from list to string.

      2.10 result (just relevant fragment included):

      $ curl "https://$3SCALE_ADMIN/admin/api/services/$SERVICE_ID/proxy.json?access_token=$TOKEN"|python -m json.tool
      ... 
       "policies_config": [ 
       { 
       "configuration": {}, 
       "description": "Main functionality of APIcast.", 
       "enabled": true, 
       "humanName": "APIcast policy", 
       "id": "apicast-policy", 
       "name": "apicast", 
       "removable": false, 
       "version": "builtin" 
       } 
       ], 
      ...

      2.11 candidate3 result:

      $ curl "https://$3SCALE_ADMIN/admin/api/services/$SERVICE_ID/proxy.json?access_token=$TOKEN"|python -m json.tool
      ... 
       "policies_config": "[{\"name\":\"apicast\",\"version\":\"builtin\",\"configuration\":{},\"enabled\":true},{\"name\":\"policy_registry\",\"version\":\"builtin\",\"configuration\":{\"property1\":{\"value1\":{\"type\":\"string\",\"description\":\"Value1\"},\"value2\":{\"type\":\"string\",\"description\":\"Value2\"}}},\"enabled\":true}]",
      ...
      

       The expectation is to receive decoded list as before, not the string

      Affecting change likely introduced before Aug 3.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mganisin@redhat.com Marian Ganisin (Inactive)
            Petr Hála Petr Hála
            Aleksandar Kostadinov Aleksandar Kostadinov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: