Bug 1249029 - Swagger UI fails to load (hardcoded path to different war)
Summary: Swagger UI fails to load (hardcoded path to different war)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Tooling
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Barry LaFond
QA Contact: Andrej Smigala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-31 11:36 UTC by Andrej Smigala
Modified: 2015-11-17 18:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-17 18:06:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIIDDES-2595 0 Blocker Closed Swagger UI fails to load (hardcoded path to different war) 2015-08-12 11:14:44 UTC

Description Andrej Smigala 2015-07-31 11:36:41 UTC
Description

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".

Comment 2 JBoss JIRA Server 2015-07-31 15:15:59 UTC
Ted Jones <tejones> updated the status of jira TEIIDDES-2595 to Resolved

Comment 3 JBoss JIRA Server 2015-08-12 11:05:47 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2595 to Closed


Note You need to log in before you can comment on or make changes to this bug.