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

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to