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

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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • None
    • HCDC 3.0.1
    • API and Integrations
    • None
    • Severity 3 - Minor

      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 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.

              rberrelleza Ramiro Berrelleza (Inactive)
              adridi Arbi Dridi
              Archiver:
              mandreacchio Michael Andreacchio

                Created:
                Updated:
                Resolved:
                Archived: