← Back to team overview

dhis2-devs team mailing list archive

[Bug 1384277] [NEW] Web-API paging returns global total for MessageConversations, should be limited to users conversations

 

Public bug reported:

Try the following in 2.17 trunk:
curl -X GET https://apps.dhis2.org/dev/api/messageConversations -u admin:district -v

The total in the Web-API pager of the returned result will not reflect
the messages for the particular user, but the database total of
MessageConversations. Likely related to access control for messages
being only partially implemented (see
MessageConversationController.getObject()).

Arguably not really a bug but a lack of consistency in the API causing
confusion.

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: messageconversation web-api

** Description changed:

- Try the following:
+ Try the following in 2.17 trunk:
  curl -X GET https://apps.dhis2.org/dev/api/messageConversations -u admin:district -v
  
  The total in the Web-API pager of the returned result will not reflect
  the messages for the particular user, but the database total of
  MessageConversations. Likely related to access control for messages
  being only partially implemented (see
  MessageConversationController.getObject()).
  
  Arguably not really a bug but a lack of consistency in the API causing
  confusion.

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

Title:
  Web-API paging returns global total for MessageConversations, should
  be limited to users conversations

Status in DHIS 2:
  New

Bug description:
  Try the following in 2.17 trunk:
  curl -X GET https://apps.dhis2.org/dev/api/messageConversations -u admin:district -v

  The total in the Web-API pager of the returned result will not reflect
  the messages for the particular user, but the database total of
  MessageConversations. Likely related to access control for messages
  being only partially implemented (see
  MessageConversationController.getObject()).

  Arguably not really a bug but a lack of consistency in the API causing
  confusion.

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


Follow ups

References