]
Ted Jones resolved TEIIDDES-2595.
---------------------------------
Resolution: Done
Removed hard-coded value for url and made it dynamic based on war context and model. Also
removed alert dialog and regex check.
Swagger UI fails to load (hardcoded path to different war)
----------------------------------------------------------
Key: TEIIDDES-2595
URL:
https://issues.jboss.org/browse/TEIIDDES-2595
Project: Teiid Designer
Issue Type: Bug
Components: Web Services Support
Affects Versions: 9.0.3
Reporter: Andrej Šmigala
Assignee: Ted Jones
Priority: Critical
Fix For: 9.0.3
Swagger UI fails to load completely, with the following message:
bq. 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.t...
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".