← Back to team overview

dhis2-devs team mailing list archive

[Bug 1429294] [NEW] Cannot Delete Users via Web API

 

Public bug reported:

I created a User, I then took that user's uid and tried to delete with
the following.

curl -X DELETE -u admin:district
https://apps.dhis2.org/demo/api/users/Ix1ihxTPq4E

I get an error back 
org.postgresql.util.PSQLException: ERROR: update or delete on table "userinfo" violates foreign key constraint "fk6a68e08f19893da" on table "users"
  Detail: Key (userinfoid)=(240277) is still referenced from table "users".

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: api web

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

Title:
  Cannot Delete Users via Web API

Status in DHIS 2:
  New

Bug description:
  I created a User, I then took that user's uid and tried to delete with
  the following.

  curl -X DELETE -u admin:district
  https://apps.dhis2.org/demo/api/users/Ix1ihxTPq4E

  I get an error back 
  org.postgresql.util.PSQLException: ERROR: update or delete on table "userinfo" violates foreign key constraint "fk6a68e08f19893da" on table "users"
    Detail: Key (userinfoid)=(240277) is still referenced from table "users".

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


Follow ups

References