Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Image viewer shows wrong picture after clicking preview thumbnail

Open Gummikavalier opened this issue 2 months ago • 4 comments

Description:

This is a stub of issue as we don't know how to reproduce the issue yet.

When preview image is opened the RC image viewer shows wrong picture from that same channel.

This has happened to some images only in threads so far.

Steps to reproduce:

  1. On a channel with lots of pictures create two threads
  2. Upload image into the first thread
  3. Upload image into the second thread
  4. (not known)
  5. Open up the image in the second thread by clicking it with mouse

Expected behavior:

Correct image from the second thread is shown in the opened up image viewer.

Actual behavior:

The image viewer shows the picture from the first thread.

Server Setup Information:

  • Version of Rocket.Chat Server: 7.0.0
  • License Type: Enterprise
  • Number of Users: 500+
  • Operating System: RHEL8
  • Deployment Method: tar
  • Number of Running Instances: 4
  • DB Replicaset Oplog: Yes
  • NodeJS Version: 20.17.0
  • MongoDB Version: 6.0

Client Setup Information

  • Desktop App or Browser Version: Latest Chrome, Firefox and Desktop client.
  • Operating System: OS independent

Additional context

  • If you link the message whose enlarged image is shown incorrectly to other channel, the picture is shown correctly.
  • We have also checked the database entries of both messages in db.rocketchat.message -collection and in comparison their references to their files do not cross refer each other.
  • The failing picture is not always shown in the files tab of the channel. Sometimes it is, though.

So far we have deduced:

  1. Issue happens only inside the same channel
  2. Issue is seems to be in the image viewer, not data itself
  3. The files have been uploaded with mobile or desktop client

Gummikavalier avatar Dec 03 '24 09:12 Gummikavalier