← Back to team overview

dhis2-devs team mailing list archive

[Bug 1570424] Re: [api] DELETE request for object with relationships returns 500

 

** Changed in: dhis2
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1570424

Title:
  [api] DELETE request for object with relationships returns 500

Status in DHIS:
  Fix Committed

Bug description:
  When attempting to delete an object with relations to other objects
  the delete request fails with a 500 error and a stack trace.

  Reproduce, attempt to send a DELETE request to:
  https://play.dhis2.org/dev/api/organisationUnitGroupSets/Bpx0589u8y0

  The same response gets returned on 2.22.

  I believe we should return a proper web message, so we can also inform
  the user of why this object can not be deleted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1570424/+subscriptions


References