anuragraghavan / franca

Automatically exported from code.google.com/p/franca
0 stars 0 forks source link

FDeployModelPersistanceHandler does not handle absolute file names correctly #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call FDeployModelPersistanceHandler.saveModel(FDModel, String) with an 
absolute file name.

What is the expected output?
The deployment model should be saved to the specified file.

What do you see instead?
I get an exception
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/XXX' 
does not exist.
and the file is not saved.

Even worse, FDeployModelPersistanceHandler.saveModel() returns true indicating 
that saving the model has succeeded.

What version of the product are you using? On what operating system?
Franca 0.9.0 on Linux.

Please provide any additional information below.
- Comparing the FrancaModelPersistanceHandler and 
FDeployModelPersistanceHandler implementations I am pretty sure that changing 
URI.createURI(filename) to FileHelper.createURI(filename) should fix the 
problem.
- The same problem probably exists in 
FDeployModelPersistanceHandler.loadModel(String), but I have not verified it.

Original issue reported on code.google.com by klaus....@intel.com on 18 Jun 2014 at 11:29

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 8 Jul 2014 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 29 Jul 2014 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 29 Jul 2014 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 6 Nov 2014 at 12:02

GoogleCodeExporter commented 9 years ago
Implemented with commit 7f8acbc on develop.

Original comment by klaus.birken@gmail.com on 8 Dec 2014 at 10:45

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 19 Dec 2014 at 2:34