Bug 406208 - "#" in a title news then only a part of the title is transmitted in subject of a mail
Summary: "#" in a title news then only a part of the title is transmitted in subject o...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.10.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-04 08:51 UTC by Philippe ROUBACH
Modified: 2019-04-05 05:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.11.0


Attachments
"..." at the left end of the url field (122.12 KB, image/png)
2019-04-04 10:21 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2019-04-04 08:51:35 UTC
SUMMARY


STEPS TO REPRODUCE
1. with Firefox go to http://www.lecourrierdelarchitecte.com/article_8428  
2. click on "..."
3. click on "send link by mail"

OBSERVED RESULT

subject is "Stages non rémunérés en agence d'architecture : l'effet"


EXPECTED RESULT

subject is "Stages non rémunérés en agence d'architecture : l'effet #metoo ?"

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
kmail 5.10.3
Comment 1 Laurent Montel 2019-04-04 10:00:42 UTC
where is the "..." ? :)
Sorry I can't find it here.
Comment 2 Laurent Montel 2019-04-04 10:03:12 UTC
kmail --subject "Stages non rémunérés en agence d'architecture : l'effet #metoo ?"
works...
So I need to find your "..." in this page otherwise I can't reproduce it
Comment 3 Philippe ROUBACH 2019-04-04 10:19:43 UTC
i use FF 66

"..." is at the left end of the url field
Comment 4 Philippe ROUBACH 2019-04-04 10:21:31 UTC
Created attachment 119237 [details]
"..." at the left end of the url field
Comment 5 Laurent Montel 2019-04-04 10:26:28 UTC
Ah ! in firefox url field ! ok
Comment 6 Philippe ROUBACH 2019-04-04 10:39:38 UTC
sorry it's at the right end of the url field
Comment 7 Laurent Montel 2019-04-04 11:21:00 UTC
Ok I can confirm it.
I will investigate it now
Comment 8 Laurent Montel 2019-04-04 11:54:44 UTC
I created a test case and indeed it's a limit from QUrlQuery as # is an url separator... For the moment I don't have a workaround for it...
Comment 9 Laurent Montel 2019-04-04 17:26:47 UTC
Git commit eeddd6ad7911a11f309de9944215e76a6889b7ea by Laurent Montel.
Committed on 04/04/2019 at 17:26.
Pushed by mlaurent into branch 'Applications/19.04'.

Fix Bug 406208 - "#" in a title news then only a part of the title is transmitted in subject of a mail

FIXED-IN: 5.11.0

M  +26   -12   messagecore/autotests/stringutiltest.cpp
M  +18   -13   messagecore/src/utils/stringutil.cpp

https://commits.kde.org/messagelib/eeddd6ad7911a11f309de9944215e76a6889b7ea
Comment 10 Philippe ROUBACH 2019-04-04 21:11:44 UTC
it looks like https://bugs.kde.org/show_bug.cgi?id=401996
Comment 11 Laurent Montel 2019-04-05 05:32:09 UTC
(In reply to Philippe ROUBACH from comment #10)
> it looks like https://bugs.kde.org/show_bug.cgi?id=401996

nope we don't use kmail for this one.
It's kaddressbook-webengine which doesn't parse correctly.

FF has the same problem has it doesn't show ')' as part of url...