Bug 1003498

Summary: When creating process with existing name the old process is silently overwritten
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kverlaen
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:09:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 983661    

Description Jiri Locker 2013-09-02 08:13:46 UTC
Description of problem:
If the user enters name of an existing process when creating a new one (which can happen accidentally), the old process will be overwritten with the new one (effectively cleared) without any warning/confirmation prompt. The user may not even notice.

Version-Release number of selected component (if applicable):
ER1

How reproducible:
-

Steps to Reproduce:
1. create a new process named "proc"
2. make some changes (Start -> Task -> End), save it and close it
3. repeat step one

Actual results:
Attempt to create a process with existing name is successful, no warning before overwriting the existing process.

Expected results:
Either prompt the user to confirm the destructive action or, preferably, to be consistent with other asset types, fail with "File already exists" error.

Additional info:

Comment 1 Tihomir Surdilovic 2013-09-04 18:34:07 UTC
fix in designer master and 6.0.x branches

Comment 5 Jiri Locker 2013-10-18 12:29:06 UTC
Fixed in ER4.