Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2595

Swagger UI fails to load (hardcoded path to different war)

XMLWordPrintable

      Swagger UI fails to load completely, with the following message:

      Can't read swagger JSON from http://localhost:8080/hana/api-docs/VirtualHana

      This is because the file https://github.com/Teiid-Designer/teiid-designer/blob/9.0.x/plugins/org.teiid.designer.webservice.lib/rest_war_resources/webapps/index.html has that path hardcoded on line 33.

      Additionally, if I enter a url that matches the regex on line 28 (such as http://localhost:8080/restBooks/?url=api-docs/BooksView ), an alert message is shown (line 31).

      The title of the page is also hardcoded to "hana VDB".

              rhn-engineering-tejones Edwin Jones
              asmigala@redhat.com Andrej Smigala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: