File > Save As action results in validation errors in new model if model is virtual and
folder location different than original location.
-----------------------------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-627
URL:
https://jira.jboss.org/browse/TEIIDDES-627
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 7.1, 7.0
Reporter: Barry LaFond
Priority: Minor
Fix For: 8.0
The ModelCopyCommand class doesn't take into account the possibility in having a
destination folder different than the original model.
The Action will perform the Save As OK, however, there may be validation errors due to
unresolved Imports and Objects
By selecting the model and Rebuilding Imports, the validation errors should get fixed.
There may be Criteria errors if the SQL contains the full path/model name. users will
need to re-edit the Criteria to fix it.
The elegant fix would be to :
1) Perform a rebuildImports() action during the command execution
2) determine the relative path change due to different destinations and perform an HRef
update (SEE ResourceMoveCommand)
3) Perform an update to the Criteria via RefactorModelExtensionManager framework. (i.e.
MappingRefactorModelHandler)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira