Bug 1221297

Summary: Teiid Connection Import fails when model name is set before model location
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: atangrin, mmakovy, 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:07:51 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-05-13 16:03:50 UTC
When going through the Teiid Connection Import wizard, setting model name before selecting the model project on the Select the target model for the import page causes the import to fail. This happens when no model project was previously selected.

When a model project is already selected, changing the model project on that page, after setting the model name, causes the new model to be created in the wrong project.

Selecting the model project first and then setting the model name does not cause any of these issues.


Steps to reproduce:

Import fails:
1. create a model project
2. in the Guides view, select Model Teiid Datasource and then Create source model from Teiid data source DDL (do not define Teiid Model Project first)
3. select some datasource on the server (the ExampleDS is ok)
4. click Next twice to get to the Select the target model for the import page
5. the Location should be empty
6. set the Name to something
7. now set the Location to the created model project
8. Click Next twice, the DDL fails to import


Imported model created in wrong folder:
1. create two model projects, ProjectA and ProjectB
2. right-click ProjectA, select Import -> Teiid Connection >> Source Model
3. go through the import as before
4. on the Select the target model for the import page, set the Name to something, then change the Location to ProjectB
5. finish the wizard, the new model is created in ProjectA

Comment 2 JBoss JIRA Server 2015-05-14 16:45:46 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2520 to Resolved

Comment 3 JBoss JIRA Server 2015-05-28 09:37:19 UTC
Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2520 to Closed

Comment 4 Matus Makovy 2015-05-28 09:37:37 UTC
verified TD 9.0.2.Final

Comment 5 JBoss JIRA Server 2015-06-15 12:20:05 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2520 to Reopened

Comment 6 JBoss JIRA Server 2015-06-15 12:20:15 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2520 to Closed