URL Encode in Richtext editor

URL Encode in Richtext editor

avatar

Hi!

I'm create an item with the rich text editor. I select URL Mode and write one URL.

And it always shows an error. Here are some examples of error URLs:


When I don't have "ú" everything works fine. How do I encode the URL to make it work? If I check the web server log, the request doesn't arrive.

Thanks

60625898-5f76-4156-ab34-8820aa6d9a97.png

All Comments (12)

avatar

Hello,
Sound like a bug. I will create a ticket for that.

Regards

David Hervieux

avatar

Hello,
I have verified and we do the equivalent of Windows+R for the run. When I paste your URL, the "ú" gets resolved. Do you have an idea what the URL Windows could recognize?

David Hervieux

avatar

Hello,

I think RDM validates the URL before opening it. When it gives an error, the request does not reach the server.

I did some tests and for example if I have http://server/url%20url the address http://server/url+url is loaded

They are similar, they work the same, but they are not the same. I think the process that converts %20 to + is giving an error when ú appears.

Thanks,

avatar

I did another test:

If I use this URL: http://miserver/not%20/exist I have this error:



But, If I use this URL: http://miserver/not%20/ú/exist






8471a188-8bb5-4eab-bb25-2c392de95d7c.png

07f352d8-19d3-4374-acfd-5927e812eb1a.png

avatar

Hello,
Do you have a public URL I could try, something not directly related to you but just a use case to reproduce it? It's just to simplify the test.

Regards,

David Hervieux

avatar

Hello,

I don't have any, but try these Wikipedia addresses. From what I see, the problem appears when there is an accent and a space in the URL.

"https://es.wikipedia.org/wiki/Per%C3%BA" OK
"https://es.wikipedia.org/wiki/Per%C3%BA%20(desambiguaci%C3%B3n)" ERROR
"https://es.wikipedia.org/wiki/Perú (desambiguación)" ERROR

All work in Chrome.

Thanks

avatar

Hello Raymond,

Thank you for your reply and for the links,

I've been able to reproduce the behavior you describe, I will reach out to my colleagues regarding this and keep you updated with any news I receive.

Best regards,

Samuel Dery

avatar

Hello,
I've made a fix. Let me know if this resolves your issue. This will be in RDM 2024.3.16, coming in the next few weeks.

Regards

David Hervieux

avatar

Thanks for the changes. Today I installed the version that should fix the problem. I tried the following urls, but it still fails.

"https://es.wikipedia.org/wiki/Per%C3%BA%20(desambiguaci%C3%B3n)" ERROR
"https://es.wikipedia.org/wiki/Perú (desambiguación)" ERROR

avatar

Hello,
I've just tried and it works fine for me. Could you export the (.rdm) session that does not work from the previous post so I can verify what could be the root cause of your issue?

Regards

David Hervieux

avatar

Thanks. A few days ago I got a new version. I installed it and it doesn't crash anymore.

Thanks.

avatar

Hello Ray,

Thank you for your reply,

I see, perfect I'm glad to hear that!

Best regards,

Samuel Dery