spd
October 9, 2022, 11:19pm
1
There is some issue with quoting messages on my server.
When quoting, before the message there is a visible url (I supposed to the quoted message).
It all started after updating to version 4 of rocketchat ( dont remember what exact version)
And only mobile clients were affected by this issue. On the web everything was OK.
But after updating to 5.1.4 version the problem started also thru the web.
On mobile client (iOS):
On Web client:
Server Setup Information
Version of Rocket.Chat Server: 5.1.4
Operating System:
Deployment Method: docker
Number of Running Instances: 3
DB Replicaset Oplog: yes
NodeJS Version: 14.19.3
MongoDB Version: 5.0.13
Proxy: nginx
Firewalls involved: yes
Any additional Information
There is no errors or anything in rocketchat server log or in chrome devtools console.
The only thing is the error when rockerchat start about dublicated key, but I dont think that it is relevant
Some indexes for collection ‘rocketchat_read_receipts’ could not be created:
2022-10-08T21:18:25.863827684Z E11000 duplicate key error collection: rocketchatdb.rocketchat_read_receipts index: roomId_1_userId_1_messageId_1 dup key: { roomId: “CPkfThxvdfgyj7vtzM”, userId: “prCbdhjuHT6Nv8gqG”, messageId: “zwhmVNj8srtfJYiwI” }
The issue exist in all chats on the server, direct and channels
Any ideas where to look would be appreciated.
Hi!
Not sure how to reproduce this.
Can you test on latest 5.2.rc-4?
If you want to help us test newer version, considering joining our Beta Testers Channel
Thanks!
spd
October 10, 2022, 5:20pm
4
I’ve digged deeper into message how it is stored in mongo db
here is a message with quote issue:
here is a message with no issue ( I have a test server with the same versions as production):
With red I marked where are the differences.
so the issue is when writing a message, not when showing it in web or mobile client.
ignoreParse: True
I think this is giving all that effect, but from where it is coming from?
spd
October 10, 2022, 8:53pm
5
I guess I found the culprit.
It is a message parser.
urls where there is a minus after first letter in domain name are not recognized as urls but like plain text, i.e. urls like this:
https://chat.e-xample.com
https://chat.r-ocket.com
I have a domain name like these examples.
spd
October 11, 2022, 11:25pm
6
here is the example,
https://chat.e-xample.com is not recognized as url,
but https://chat.ee-xample.com is ok
so I guess I need to wait at least forever while this would be fixed.
Oh, that’s a nice catch!
I can confirm. I have searched for a similar and could not find.
Would you mind going ahead and opening one?
Thanks!
Hi! Looks like this issue is related:
opened 01:08PM - 15 Oct 22 UTC
### Description:
The link https://www.n-tv.de/ is not clickable when being pa… rt of a message. However, a link preview is generated which can be clicked.
This seems to happen with all URLs that match `\.[a-z]\-`.
### Steps to reproduce:
1. Write a message containing https://www.n-tv.de/.
2. Desperately click on the non-clickable link.
### Expected behavior:
The link is clickable.
### Actual behavior:
The link is not clickable.

### Server Setup Information:
- Version of Rocket.Chat Server: 5.2.0
- Deployment Method: Docker
- Number of Running Instances: 1
### Client Setup Information
Affects any desktop and mobile browser as well as the Android app.
Hi,
I have the same issue since 5.3.0.
I upgraded today from 5.1.3 which was working fine.
I have no minus in my server url at all! just letters and numbers like ‘https://chat.123abc.de ’
Are there any news on this?
Hi! We have been fixing a lot of issues regarding the message parser.
I think we need to make sure that this issue you are facing is somehow covered in one of the issues already listed in Message Parser · GitHub
If not, we should open a new issue and add it to this project.
Let me know if this helps.
I dont know. I cannot find something related to this!
1 Like
hi!
I think you can go ahead and open an issue.
I have tested those urls:
https://chat.e-xample.com
https://chat.r-ocket.com
Can you please create an issue for that? So we can try having more URL issues around that.
https://chat.123abc.de
this one will work with numbers on the begining of the domain
something is off on that.
Please, let me know if you can open the issue.
Thanks!!
Here is the created Issue:
opened 12:28PM - 12 Nov 22 UTC
<!--
Please see our guide for opening issues: https://rocket.chat/docs/contr… ibuting/reporting-issues
If you have questions or are looking for help/support please see: https://rocket.chat/docs/getting-support
If you are experiencing a bug please search our issues to be sure it is not already present: https://github.com/RocketChat/Rocket.Chat/issues
-->
### Description:
If i quote a message in Rocket.Chat the message above the quote has a incorrectly formated link in front of the text which was not there before
### Steps to reproduce:
1. quote a message (test message)
2. enter your answer (test quote)
3. send the message
### Expected behavior:
the answer shoud be shown without that link
### Actual behavior:
the answer has a incorrectly formatted link in front of the test

### Server Setup Information:
- Version of Rocket.Chat Server: 5.3.0
- Operating System: debian 11
- Deployment Method: docker (linux amd64)
- Number of Running Instances: 1
- DB Replicaset Oplog: yes
- NodeJS Version: 14.19.3 - x64
- MongoDB Version: 5.0.13
### Client Setup Information
- Desktop App or Browser Version: Chrome 107
- Operating System: MacOS X 13.x
### Additional context
Last working state was on Rocket.Chat Server Version 5.1.3
It is maybe related to the Message Parser and has something to do with special characters in the Server URL (see discussion), but this is not the case here.
### Community discussion:
[https://forums.rocket.chat/t/message-quote-issue/15115/8](https://forums.rocket.chat/t/message-quote-issue/15115/8)
1 Like
i can confirm. the issue is gone on 5.4.0-rc.0 (rc.1) !
thanks
1 Like