Bug 1278199

Summary: REST WAR Generation - Index.html contains wrong View name in url
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Serhat Dirik <serhat>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED NOTABUG QA Contact: Matus Makovy <mmakovy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: 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-12-07 13:29:50 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 Serhat Dirik 2015-11-04 22:29:39 UTC
Description of problem:

  In index.html file, url address of rest services having invalid values on subsequent rest war generation.  

Version-Release number of selected component (if applicable):

  JBDS 9.0 GA + Early Access Alpha2 plugins (access.redhat.com)
  
How reproducible:
   
  In any workspace that contains multiple teiid projects (or single project with multiple views) 

Steps to Reproduce:
1. Right click on a view model & select pick generate rest procedures from modelling menu 
2. Goto VDB file that containing this view and generate a REST WAR 
3. On a second project do the same
4. Open generated WAR file and check index.html file content. Check the generated javascript there. You'll see generated url variable value is containing the view name of the first project. 
5. If you see proper value, go back to first VDB and regenerate REST war, check the index.html content 

Actual results:

  Wrongly generated index.html file in WAR file

Expected results:
  index.html has proper url
  
Additional info:
   ,I think the view model name is saved in a session value in Eclipse.
    IDE restart is required for proper generation

Comment 2 Matus Makovy 2015-11-05 10:05:28 UTC
I reproduced this with TD 9.0.4

Comment 3 Barry LaFond 2015-12-07 13:29:50 UTC
Using only JIRA now.  Marking as closed

Comment 4 JBoss JIRA Server 2016-01-06 17:12:35 UTC
Ted Jones <tejones> updated the status of jira TEIIDDES-2709 to Resolved

Comment 5 JBoss JIRA Server 2016-02-24 11:30:21 UTC
Matej Kralik <mkralik> updated the status of jira TEIIDDES-2709 to Closed

Comment 6 JBoss JIRA Server 2016-04-14 18:38:52 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2709 to Reopened

Comment 7 JBoss JIRA Server 2016-04-14 18:49:09 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2709 to Closed