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

ActiveDocs shows Error when a response body is blank

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.14.0 GA
    • 2.11.3 GA, 2.13.2 GA
    • System
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      ActiveDocs shows Error when a response body is blank (content-length: 0). This isn't depends on OpenAPI definition.

      I tried to reproduce the issue with swagger-ui v3.35.1 (OpenAPI v3) and latest, but they handle blank response as expected.

      How to reproduce:
      1. Create a REST API that returns empty body
      2. Open 3scale Admin Portal.
      3. In the default "API" Product, configure a Backend that points to 1 as the API backend.
      4. Promote the configuration to Production
      5. Open ActiveDocs
      6. Request to the API Backend from ActiveDocs

      Expected Behavior: Detail field is blank.
      Actual Result: Error message in Detail field.

        1. image-2023-05-15-16-40-14-215.png
          image-2023-05-15-16-40-14-215.png
          8 kB
        2. image-2023-05-23-16-37-30-090.png
          image-2023-05-23-16-37-30-090.png
          47 kB
        3. openapi.json
          5 kB
        4. openapi-2.13-error-no-content.png
          openapi-2.13-error-no-content.png
          47 kB
        5. openapi-2.13-error-ok.png
          openapi-2.13-error-ok.png
          45 kB
        6. openapi-master-no-content.png
          openapi-master-no-content.png
          41 kB
        7. openapi-master-ok.png
          openapi-master-ok.png
          41 kB
        8. screenshot-1.png
          screenshot-1.png
          4 kB

            Unassigned Unassigned
            rhn-support-tkonishi Takayuki Konishi
            Dominik Hlavac Duran Dominik Hlavac Duran
            Daria Mayorova Daria Mayorova
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: