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

Global search - cannot go to message in a diff channel

Open paulharris opened this issue 1 year ago • 12 comments

Description:

Go to a channel (or chat). Click search. Turn on global switch. Type some text that you know will give messages in a different channel. Click "Go to message" next to that message. Observe "Room not found" screen, which says "The room does not exist or you may not have access permissions".

Then, go to that different channel manually. Open Search, do the same search. NOW you can goto that message.

Server Setup Information:

  • Version of Rocket.Chat Server: 6.6.5
  • Operating System: Linux
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: uhhhh
  • NodeJS Version: 14.21.3
  • MongoDB Version: 6.0.14

Client Setup Information

  • Desktop App or Browser Version: Firefox
  • Operating System: Linux

paulharris avatar Apr 17 '24 07:04 paulharris

I cannot reproduce on RC 6.6.6. Probably has some particular condition to fulfill until it triggers.

Gummikavalier avatar Apr 17 '24 14:04 Gummikavalier

I have a group called #support with a message inside, with the word "silly". the url is https://myhost/group/support

If i go to the channel named #bugs and search for "silly" (global), trying to go to the message gives me "Room not found". Note that #bugs is https://myhost/channel/bugs

If I instead start in a private chat with person-1, then try again, I get "Room not found" (the URL is https://myhost/direct/hashhashhash/...)

If I start in a group called Translations, and then search, it works, this time the group is https://myhost/group/translations

So the problem appears to be that the target URL does not change the base type (ie channel, group, direct, ...)

Also, isn't nice that the search-results disappear when I jump to the message. If it isn't what I'm looking for, I have to start the search from scratch.

paulharris avatar Apr 22 '24 07:04 paulharris

Thanks! I still cannot replicate the issue. I tried and in these scenarios the global search as well as jumping to those messages work for us ok.

"Room not found" issues often have indicated cached channels when we've met them, and for clearing out those logging out and logging back in usually helps (the channel subscriptions get loaded again).

Gummikavalier avatar Apr 22 '24 16:04 Gummikavalier

This happens to me in a private firefox window, no cache.

Did you try looking for a message that exists in a private 'group', while in another 'channel' or PM ? Of course while you are a member of the private group.

paulharris avatar Apr 29 '24 07:04 paulharris

Hi, yes, I tried. Global search works without issues for us. :disappointed_relieved:

Gummikavalier avatar Apr 29 '24 17:04 Gummikavalier

Oh! Additional note; have you enabled Global search under /admin/settings/Search -> Default provider?

We have that on.

Gummikavalier avatar Apr 29 '24 17:04 Gummikavalier

I have global-search enabled. Perhaps it is because I had enabled it earlier when it was still in beta?

paulharris avatar May 09 '24 07:05 paulharris

We've had it enabled too during the beta times. It's getting weird... :disappointed:

Gummikavalier avatar May 10 '24 15:05 Gummikavalier

I think this may be related to messages found that are in a thread?

If I search for text and it is a standard message it seems OK, but if I search for a message that is in a thread the URL seems wrong.

This is the search result (and the link in the code, less the https://my.domain.com/) whilst in a private room for a result in a public room - this shows 'Room not found':

https://my.domain.com/group/publictest/thread/iqL5ZJh3jX4ZrqurD?msg=joTnD4e6NF7GhTy2T

This is the link if you copy it from 'Copy link' in the message

https://my.domain.com/channel/publictest?msg=joTnD4e6NF7GhTy2T

reetp avatar May 10 '24 15:05 reetp

I can confirm that the message I was trying to jump to was in a thread !

paulharris avatar May 11 '24 00:05 paulharris

This is in the queue to be fixed.

reetp avatar May 18 '24 10:05 reetp

+1

edpittol avatar Jul 04 '24 18:07 edpittol

Any update on when this will be fixed?

kjordan2001 avatar Feb 03 '25 16:02 kjordan2001

Any update on when this will be fixed?

If you have a paid subscription then contact support and ask.

If not it's open source. The team will appreciate your urgent PR to fix it......

reetp avatar Feb 19 '25 22:02 reetp

Any update on when this will be fixed?

If you have a paid subscription then contact support and ask.

If not it's open source. The team will appreciate your urgent PR to fix it......

No need for snide remarks. Just ran across this issue a handful of times recently and wondered where it had been left off since you said it was in the queue to be fixed 9 months ago and nothing was updated on this since.

kjordan2001 avatar Feb 20 '25 00:02 kjordan2001

No need for snide remarks.

It's facts. You may not like them but it doesn't change them.

It is what it is.

There's a huge system here hidden from view, geared around paying customers and feeding developers. Totally separate bug tracker etc.

Github is just the final output where they publish code. It is rarely viewed by devs (but a few of us are trying to slowly change that)

They don't generally post what they're doing or when.

If they want to fix something they'll do it according to their own schedules.

If anyone else wants it fixed you can

Pay support Wait patiently Fix it yourself

So this has been added to a product managers queue but it probably involves potential upcoming UI changes.

It will get done, if and when they choose, and no amount of nagging here will help.

You get what you pay for.

If you are a paying customer then that gives you nag rights. Otherwise.....

reetp avatar Feb 20 '25 07:02 reetp