Continuum

Better handling of error when deleting a Build Environment that is in use

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.3.3 (Beta)
  • Component/s: Web - UI
  • Labels:
    None
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes
  • Number of attachments :
    2

Description

If you attempt to delete a Build Definition (Profile) that is in use (attached to a Build Definition), an error occurs:

Error Occurred
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM PROFILES WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'PROFILES' caused a violation of foreign key constraint 'BUILDDEFINITKW_FK2' for key (16). The statement has been rolled back.

Continuum is correct to prevent the deletion, but it should display a useful error message rather than a stack trace.

  1. CONTINUUM-1767.patch
    24/Mar/09 6:22 PM
    12 kB
    Jose Morales Martinez
  2. Continuum-1767-continuum-webapp.patch
    09/Jul/08 4:53 AM
    4 kB
    Jevica Arianne B. Zurbano

Issue Links

Activity

Hide
Jevica Arianne B. Zurbano added a comment -

Attached patch.

Show
Jevica Arianne B. Zurbano added a comment - Attached patch.
Hide
Jose Morales Martinez added a comment -

This patch checks build definitions.

Show
Jose Morales Martinez added a comment - This patch checks build definitions.
Hide
Brett Porter added a comment -

Marica, are you still working on this?

Show
Brett Porter added a comment - Marica, are you still working on this?
Hide
Maria Catherine Tan added a comment -

This has been fixed already.

Show
Maria Catherine Tan added a comment - This has been fixed already.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: