Public bug reported:

Sending Feedback to Usergroups and Sending Messages via
api/messageConversations fails with Null Pointer exception.

For feedback, you can send messages/feedback to some user groups
successfully but as you add more users to the user group, it then fails
with the Null Pointer exception.

For sending messages via the api/messageConversations fails for some user 
groups and completely for organisation Units.
This is the json message template that is failing
{
  "subject": "Death Notification",
  "text": "A patient has died",
  "users": [
    {
      "id": "pojd66hgayy"
    }
  ],
  "userGroups": [
    {
      "id": "Ynyw1MPeIJV"
    }
  ],
  "organisationUnits": [
    {
      "id": "BPZcHDS6OP0"
    },
    {
      "id": "hDsNksdRJyK"
    }
  ]
}

Attached is the error log.
This affects build 22991 version 2.23.

I have checked users but nothing strange for users when added fails the
process.

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: 2.23 feedback messaging webapi

** Attachment added: "This is the error log"
   
https://bugs.launchpad.net/bugs/1591697/+attachment/4682216/+files/smsfailed%20with%20userGroups%20and%20organisationUnits.txt

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

Title:
  Feedback and Sending Messages via api/messageConversations fails with
  Null Pointer

Status in DHIS:
  New

Bug description:
  Sending Feedback to Usergroups and Sending Messages via
  api/messageConversations fails with Null Pointer exception.

  For feedback, you can send messages/feedback to some user groups
  successfully but as you add more users to the user group, it then
  fails with the Null Pointer exception.

  For sending messages via the api/messageConversations fails for some user 
groups and completely for organisation Units.
  This is the json message template that is failing
  {
    "subject": "Death Notification",
    "text": "A patient has died",
    "users": [
      {
        "id": "pojd66hgayy"
      }
    ],
    "userGroups": [
      {
        "id": "Ynyw1MPeIJV"
      }
    ],
    "organisationUnits": [
      {
        "id": "BPZcHDS6OP0"
      },
      {
        "id": "hDsNksdRJyK"
      }
    ]
  }

  Attached is the error log.
  This affects build 22991 version 2.23.

  I have checked users but nothing strange for users when added fails
  the process.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1591697/+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