Bug 1024334 - Exception when trying to use "Markup Editor" on forms created by "Graphical Modeler"
Summary: Exception when trying to use "Markup Editor" on forms created by "Graphical M...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER6
: 6.0.0
Assignee: Tihomir Surdilovic
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 12:29 UTC by Patrick Steiner
Modified: 2014-08-06 20:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Build Name: 13464, Getting Started Guide-6-Beta-1 Build Date: 28-10-2013 13:46:10 Topic ID: 13469-547483 [Latest]
Last Closed: 2014-08-06 20:06:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Patrick Steiner 2013-10-29 12:29:46 UTC
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"


Additional information:

Comment 2 Neus Miras 2013-11-18 10:36:12 UTC
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);

instead of

repository.deleteAssetFromPath(packageName + taskName + TASKFORM_NAME_EXTENSION + "." + formType);

to delete the same asset thas is being created and to avoid the FileAlreadyExistsException.

Comment 4 Tihomir Surdilovic 2013-11-18 15:58:11 UTC
fixed in designer master branch. will be moved to 6.0.x after community release.

Comment 5 Tihomir Surdilovic 2013-11-18 16:00:51 UTC
fix in designer 6.0.x branch as well

Comment 6 Marek Baluch 2014-01-10 14:02:02 UTC
Verified on ER7.

No more FileAlreadyExistsException exception.


Note You need to log in before you can comment on or make changes to this bug.