zowe / api-layer

The API Mediation Layer provides a single point of access for mainframe service REST APIs.
Eclipse Public License 2.0
56 stars 63 forks source link

The "Servers" drop down on a remote domain API-ML is incorrect on the Catalog page for that remote API-ML #3906

Open youngaaronm opened 4 days ago

youngaaronm commented 4 days ago

Describe the bug The "Servers" drop down contains an incorrect value for a remote domain API-ML on the Catalog page for that remote API-ML gateway on the central API-ML catalog.

Steps to Reproduce

  1. Configure at least two API-MLs. Configure the second API-ML to have an additional Registration to the first API-ML.
  2. Logon to the Catalog on API-ML 1.
  3. You should see an entry for the gateway for API-ML 1, plus an entry for the remote API-ML2.
  4. If you select the remote gateway API-ML 2, look at the "Servers" drop down server url on the page.
  5. You will see that the Servers box contains the value for API-ML 1, not API-ML 2 as expected.

Expected behavior The "Servers" drop down box should contain an entry that points to the API-ML gateway for the entry selected.

Screenshots If applicable, add screenshots to help explain your problem.

Logs If applicable, add server logs collected at the time of your problem.

Details

API Catalog Web UI (in case of API Catalog issue):

Additional context Andrej is also able to recreate.

Willingness to help If you are willing to help with debugging and reproducing the problem or with fixing the problem, please state your willingness to assist in the created issue.

https://github.com/zowe/api-layer/wiki/Issue-management

achmelo commented 3 days ago

Catalog UI updates swagger URL with "window" location. This works for most of the cases but does not count with additional GW. https://github.com/zowe/api-layer/blob/1f884ea297bd1d5a75fb7c6ec424c46a2294a0bd/api-catalog-ui/frontend/src/components/Swagger/SwaggerUIApiml.jsx#L18