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

[toolbox/API] OAS import fails when creating a service with an old deleted system name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • SaaS, 2.9.1 GA
    • System, Toolbox
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      1. 3scale service create --system-name='testAPI' --insecure quicklab testAPI
      2. 3scale service delete --insecure quicklab testAPI
      3. 3scale import openapi -d quicklab 'test.json' --insecure --target_system_name='testAPI' --default-credentials-userkey='user_key'
      4. 3scale service create --system-name='testAPI' --insecure quicklab testAPI

      Create a new product[1] then delete it[2], attempt to recreate it using OASImport[3] and note it fails, create it using service create[4] (If using 2.9 this will fail, saas will succeed)

      Show
      3scale service create --system-name='testAPI' --insecure quicklab testAPI 3scale service delete --insecure quicklab testAPI 3scale import openapi -d quicklab 'test.json' --insecure --target_system_name='testAPI' --default-credentials-userkey='user_key' 3scale service create --system-name='testAPI' --insecure quicklab testAPI Create a new product [1] then delete it [2] , attempt to recreate it using OASImport [3] and note it fails, create it using service create [4] (If using 2.9 this will fail, saas will succeed)

    Description

      When creating a service using the Toolbox the creation will fail with a HTTP 422 error if the system name matches a previously deleted service.

      {
        "code": "E_3SCALE_API",
        "message": "Service has not been created. Errors: {\"system_name\"=>[\"has already been taken\"]}",
        "class": "ThreeScaleToolbox::ThreeScaleApiError"
      }
      

      UI behaviour and current API/Toolbox behaviour for service creation will successfully create new services under the same circumstances.

      This has been reproduced using 0.17 and 0.19 versions of Toolbox.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-ahobson Aimi Hobson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: