Red Hat Bugzilla – Bug 1024334
Exception when trying to use "Markup Editor" on forms created by "Graphical Modeler"
Last modified: 2014-08-06 16:06:13 EDT
Title: Exception when trying to use "Markup Editor" on forms created by "Graphical Modeler"
Describe the issue:
I have a simple process with a simple "Process Form", which I have created by selecting "Generate all Forms". I have opened this form in the Form Modeler but didn't change anything. After that, I have opened it in the "Markup Editor", made changes and tried to safe the file. This did create an "org.kie.commons.java.nio.file.FileAlreadyExistsException".
Suggestions for improvement:
- Disable editing with "Markup Editor" if there are conflicts with the "Graphical Editor"
There is a bug when the Markup editor asset has to be removed to be re-writed with the changes.
The code in class TaskFormsEditorServlet, must be:
repository.deleteAssetFromPath(packageName + "/" + taskName + TASKFORM_NAME_EXTENSION + "." + formType);
repository.deleteAssetFromPath(packageName + taskName + TASKFORM_NAME_EXTENSION + "." + formType);
to delete the same asset thas is being created and to avoid the FileAlreadyExistsException.
fixed in designer master branch. will be moved to 6.0.x after community release.
fix in designer 6.0.x branch as well
Verified on ER7.
No more FileAlreadyExistsException exception.