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

When importing an OAS 3.0.2 spec, the 3scale toolbox converts custom ports to the default protocol (e.g. 80/HTTP) in the Backend definition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.7 GA, 2.8 GA, 2.9 GA
    • Toolbox
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • -
    • Undefined
    • Hide

      Attempt importing the OAS spec as a mounted file in the container:
       

      $ docker container run --rm -v /tmp/doc:/tmp/doc registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -k -d https://<KEY>@3scale-admin.<DOMAIN> /tmp/doc/<FILE>.yml
      

      The above is successful but will convert the Backend specified in the OAS to 80/HTTP in case it's another port such as 8080/HTTP.

      Show
      Attempt importing the OAS spec as a mounted file in the container:   $ docker container run --rm -v /tmp/doc:/tmp/doc registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -k -d https: //<KEY>@3scale-admin.<DOMAIN> /tmp/doc/<FILE>.yml The above is successful but will convert the Backend specified in the OAS to 80/HTTP in case it's another port such as 8080/HTTP.

      Please check the "Steps to Reproduce". I have tried using 'docker' instead of 'podman' but this shouldn't change the behavior from the issue.

      A sample OAS 3.0.2 spec from the customer that reported this issue will be included as a private (visible to Red Hat only) comment on this Jira in order to protect their privacy.

      NOTE: I'm not sure whether it has any relation to API as a Product but it could be, hence I'm including the versions 2.7 - 2.9.

              Unassigned Unassigned
              rhn-support-ekonecsn Estevao Konecsni
              Martin Kudlej Martin Kudlej
              Eguzki Astiz Lezaun Eguzki Astiz Lezaun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: