Details
-
Bug
-
Resolution: Done
-
Minor
-
7.0, 7.1
-
None
-
Workaround Exists
-
Description
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)