Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1074015

Summary: Improve error message when removing referenced object
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Data ModelerAssignee: Jan <jschatte>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: low Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, lpetrovi, pzapataf, rrajasek, wmedvede
Target Milestone: ER1   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:50:53 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Locker 2014-03-07 16:29:56 UTC
Description of problem:
It is forbidden to remove an object that is referenced by another object. User is presented with error message after attempt to do this but the message does not say which objects reference it. If the user really needs to remove the object he needs to clear the references and where to look for them

Actual results:
The error message only explains why it is not possible to remove the object. It doesn't help user to make it possible.

Expected results:
The error should list all objects that are referencing the object that is going to be removed.

Additional info:

Comment 1 Jan 2014-03-11 15:50:45 UTC
Fixed in kie-wb-common/master: 
- http://github.com/droolsjbpm/kie-wb-common/commit/69d1dea35
- http://github.com/droolsjbpm/kie-wb-common/commit/f683714ad (translations related to this fix)

Comment 2 Jan 2014-03-14 18:20:46 UTC
Additional commit: discard self-references of objects when evaluating if they can be safely deleted.

master: http://github.com/droolsjbpm/kie-wb-common/commit/e8e814132

Comment 3 Jan 2014-03-18 17:23:24 UTC
Cherry-picked into 6.0.x: http://github.com/droolsjbpm/kie-wb-common/compare/2921103...c2f54f4