Bug 377511 - Unwanted escapes when the user name contains “@”
Summary: Unwanted escapes when the user name contains “@”
Status: CONFIRMED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 416502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-12 02:45 UTC by Sasasu
Modified: 2025-06-17 20:45 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
workaround (644 bytes, patch)
2017-06-30 13:10 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sasasu 2017-03-12 02:45:04 UTC
OS : Arch linux
KRDC Version: 16.12.3

I connect to email@email.em@192.160.0.10 , it connected . But it stores it as "email@email.em%40@192.160.0.10" .
Then I click it to connect , it will connect "email@email.em%40@192.160.0.10" not "email@email.em@192.160.0.10" and it will store it as "email%2540email.em@192.168.0.10"
Comment 1 Urs Wolfer 2017-04-06 19:50:31 UTC
See: https://docs.kde.org/stable5/en/kdenetwork/krdc/using-krdc.html#idm46440954446128

"You need to enter an URL in percent encoded syntax, i.e. @ as %40, for e.g. username%40ad.domain.example"

Does this help in your case?
Comment 2 Sasasu 2017-04-07 05:01:50 UTC
(In reply to Urs Wolfer from comment #1)
> See:
> https://docs.kde.org/stable5/en/kdenetwork/krdc/using-krdc.
> html#idm46440954446128
> 
> "You need to enter an URL in percent encoded syntax, i.e. @ as %40, for e.g.
> username%40ad.domain.example"
> 
> Does this help in your case?

Thank you very much for your help, but it don't work.
KRDC automatically do an unwanted escapes.

Steps to reproduce the problem. 

1. try to connect username@domain@example, connected
2. disconnect
3. try to reconnect username@domain@example by using the "Remote Desktop" list ( show as "username%40domain@example")
4. error , KRDC connect "username%2540domain@example".

or 

1. try to connect username@domain@example, input "username%40domain@example"
2. error , KRDC connect "username%2540domain@example".

KRDC always escapes all special characters, even if it is escaped.
Comment 3 Sasasu 2017-04-07 05:05:29 UTC
(In reply to Sasasu from comment #0)
> OS : Arch linux
> KRDC Version: 16.12.3
> 
> I connect to email@email.em@192.160.0.10 , it connected . But it stores it
> as "email@email.em%40@192.160.0.10" .
> Then I click it to connect , it will connect
> "email@email.em%40@192.160.0.10" not "email@email.em@192.160.0.10" and it
> will store it as "email%2540email.em@192.168.0.10"

Sorry, there are some typo
I connect to email@email.em@192.160.0.10 , it connected . it stores it as "email%40email.em@192.160.0.10" .
Then I click it to connect , it will connect "email%40email.em@192.160.0.10" not "email@email.em@192.160.0.10" , it store the new url as "email%2540email.em@192.168.0.10"
Comment 4 Eugene Shalygin 2017-06-20 14:19:15 UTC
I have the very same problem: KRDC firstly replaces '@' wiht '%40' (OK, if it wants...). At the next connection attempt or, when I input my login as 'user%40domain' as suggested by KRDC manual, it replaces '%' with '%25' and so on. Extremely uncomfortable.
Comment 5 Eugene Shalygin 2017-06-30 13:10:26 UTC
Created attachment 106390 [details]
workaround

The workaround I use.
Comment 6 Petr Sýkora 2018-06-06 08:30:00 UTC
I confirm the issue mentioned in comment 4 in version 18.04.1
Comment 7 Nick 2022-03-16 03:47:37 UTC
I can also confirm the issue as described in comment 4 persists in krdc version 21.12.3
Comment 8 Linus Kardell 2023-10-20 15:02:33 UTC
And it repeats this escaping every time you click "go to address". So if you first enter email@email.em, it will say email%40email.em, then email%2540email.em. Repeat a few times ("go to address" and "cancel"), and you end up with email%2525252525252525252525252540email.em.
Comment 9 Kieran McCusker 2025-06-12 08:29:34 UTC
Problem still exists in 25.04.2
It's a shame because I have always used Remmina after trying earlier versions of KRDC. The current version looks like it could replace Remmina for me if this papercut could be fixed.
Comment 10 Kieran McCusker 2025-06-12 08:30:24 UTC
Sorry I'm running Fedora 42
Comment 11 Fabio 2025-06-17 20:45:24 UTC
*** Bug 416502 has been marked as a duplicate of this bug. ***