Bug 1249029

Summary: Swagger UI fails to load (hardcoded path to different war)
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact: Andrej Smigala <asmigala>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: atangrin, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 18:06:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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