Opened 13 years ago

Closed 13 years ago

#134 closed defect (fixed)

Save private components should work even when component is used

Reported by: patdui Owned by: twagoo
Priority: critical Milestone:
Component: ComponentRegistry Version:
Keywords: Cc: twagoo

Description

Create profile and reference to a private component.
If you now edit the private component and save, it doesn't work. GUI gives: "Failed to register: - Unable to register at this moment. Internal server error." which should be more descriptive. The real reason it doesn't work is because the component is still used by other profiles. (see server logs:
clarin.cmdi.componentregistry.DeleteFailedException?: Still used by the following profiles:

)

It protects the user that your change indirectly changes those profiles. It is probably better if it is possible to just make the change to PRIVATE components possible. Gui should probably notify which profiles are affected and ask for confirmation and then proceed.

Change History (3)

comment:1 Changed 13 years ago by twagoo

Owner: changed from patdui to twagoo
Status: newaccepted

comment:2 Changed 13 years ago by twagoo

Status: acceptedassigned

comment:3 Changed 13 years ago by twagoo

Resolution: fixed
Status: assignedclosed

Fixed in [1462:1475/ComponentRegistry/trunk] (1.9-SNAPSHOT)

When updating a component in the private workspace, the UI client calls registry/components/usage/{id} to retrieve a list of items that use the component. If it is not empty, a confirmation dialog is shown that includes a list of items that will be affected.

Note: See TracTickets for help on using tickets.