Bug 981649

Summary: Import feature allows to import the same workspace more times.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: BAMAssignee: Jan <jschatte>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: pzapataf
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:50 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:
Attachments:
Description Flags
Exported workspace which may be used for reproduction. none

Description Marek Baluch 2013-07-05 11:57:51 UTC
Created attachment 769228 [details]
Exported workspace which may be used for reproduction.

Description of problem:

It is possible to import one exported workspace more then once. I presume this is not intended behaviour as duplicating a workspace adds the prefix "Copy of" to the workspace name.

How to reproduce:
1) import the attached workspace multiple times

Comment 1 Jan 2013-09-06 10:22:18 UTC
The fact that "Copy of" is added to the workspace name is NOT due to the action of importing the workspace, but to the fact that the attached exported workspace has the name "Copy of Showcase". So in very probably you exported a duplicate of the Showcase workspace (which caused some confusion on my part when trying to establish the origin ;D ).

Comment 2 Jan 2013-09-09 16:02:11 UTC
A workaround has been implemented in the following commits:

https://github.com/droolsjbpm/dashboard-builder/commit/2bde36a89
https://github.com/droolsjbpm/dashboard-builder/commit/68f4d5be9

When importing workspaces with already existing names, a reasonable attempt to give a unique name to the newly imported workspace is made by appending "(x)" to its original name (with x reprensenting an integer).

Comment 6 Jan Hrcek 2013-10-18 06:33:15 UTC
Ok, verified with BPMS 6.0.0 ER4