Public bug reported:

When trying to send an invite to create a user i receive a null pointer.

This effects both 2.23 and 2.22 (2.22 being the more important version
for me atm :))

Send an invite request to `https://play.dhis2.org/demo/api/users/invite`
with a payload equivalent to:

```
{
    "email":"[email protected]",
    "organisationUnits":[{"id":"ImspTQPwCqd"}],
    "dataViewOrganisationUnits":[{"id":"ImspTQPwCqd"}],
    "userCredentials": {}
}
```

or curl request to run:

curl https://play.dhis2.org/demo/api/users/invite -u admin:district -d
"{\"email\":\"[email protected]\",\"organisationUnits\":[{\"id\":\"ImspTQPwCqd\"}],\"dataViewOrganisationUnits\":[{\"id\":\"ImspTQPwCqd\"}],\"userCredentials\":{}}"
-H "Content-Type:application/json"

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: api

** Tags added: api

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

Title:
  [api] NullPointer when inviting a user through the api

Status in DHIS:
  New

Bug description:
  When trying to send an invite to create a user i receive a null
  pointer.

  This effects both 2.23 and 2.22 (2.22 being the more important version
  for me atm :))

  Send an invite request to
  `https://play.dhis2.org/demo/api/users/invite` with a payload
  equivalent to:

  ```
  {
      "email":"[email protected]",
      "organisationUnits":[{"id":"ImspTQPwCqd"}],
      "dataViewOrganisationUnits":[{"id":"ImspTQPwCqd"}],
      "userCredentials": {}
  }
  ```

  or curl request to run:

  curl https://play.dhis2.org/demo/api/users/invite -u admin:district -d
  
"{\"email\":\"[email protected]\",\"organisationUnits\":[{\"id\":\"ImspTQPwCqd\"}],\"dataViewOrganisationUnits\":[{\"id\":\"ImspTQPwCqd\"}],\"userCredentials\":{}}"
  -H "Content-Type:application/json"

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

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to