Uploaded image for project: 'HipChat'
  1. HipChat
  2. HCPUB-3431

Room is not immediately accessible/visible after adding user to it via the API

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: HCS 2.2.4
    • Fix Version/s: HCS 2.4.0
    • Component/s: API and Integrations
    • Labels:
      None
    • Symptom Severity:
      Severity 3 - Minor

      Description

      This bug is very similar to HCPUB-3432

      Summary

      After adding a user to a private room via Add member, it can take the room up to 5 minutes to be visible in the room list in some environments. 
      In other environments, the room will never be visible in the room list.

      Environment

      HipChat Server 2.2.4
      HipChat Data Center 3.0.1

      Steps to Reproduce

      1. Login with a user to HipChat
      2. Add the user to a private room by running:
        curl -XPUT https://${FQDN}/v2/room/${ROOM_ID}/member/${USER_ID}?auth_token=${TOKEN}
        
      1. Search for the room in the client

      Expected Results

      Room should come up since the user was added to it as if the action was done from the client.

      Actual Results

      Room doesn't come up in the room list, although the room membership is saved immediately to the database.

      Notes

      It seems that the client periodically runs a refresh that updates the membership of the user in the client based on the the server values.

      Workaround

      • The room list will be updated if you refresh the web client or logout/login of the desktop client.
        OR
      • Use Invite user by POST ing to the /v2/room/$room_id/invite/$user_id endpoint.
        OR
      • Account for the delay when relying on this API endpoint.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rberrelleza Ramiro Berrelleza
              Reporter:
              adridi Arbi Dridi
              Archiver:
              mandreacchio Michael Andreacchio

                Dates

                Created:
                Updated:
                Resolved:
                Archived: