← Back to team overview

dhis2-devs team mailing list archive

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

 

Bug confirmed. This happens due to a missing deletion handler method.

** Changed in: dhis2
    Milestone: None => 2.23

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

** Changed in: dhis2
   Importance: Undecided => Low

-- 
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:
  New

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