Bug 351824 - Wrong urls for calendars with german umlauts
Summary: Wrong urls for calendars with german umlauts
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-26 19:43 UTC by jefaridas
Modified: 2015-08-30 09:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 15.08.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jefaridas 2015-08-26 19:43:50 UTC
Since the latest update of akonadi (15.08.0) calendars with german umlauts don't sync from my owncloud 8.1 server anymore (might also affect carddav).
Since I don't have any idea how to debug akonadi, it simply doesn't work, no error messages visible, I looked at the server logs. It looks like the url encoding doesn't work anymore: ('ö' should encode as %C3%B6, but now its %25c3%25b6. Note that %25 is '%' encoded, it might get encoded twice)

Old server-log:
w.x.y.z - - [08/Aug/2015:11:25:22 +0200] "REPORT /remote.php/caldav/calendars/xyz/pers%C3%B6nlich/ HTTP/1.1" 401 303 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.10 (like Gecko) Konqueror/4.14"
w.x.y.z - xyz [08/Aug/2015:11:25:23 +0200] "REPORT /remote.php/caldav/calendars/xyz/pers%C3%B6nlich/ HTTP/1.1" 207 166 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.10 (like Gecko) Konqueror/4.14"

Now:
w.x.y.z - - [26/Aug/2015:19:50:13 +0200] "REPORT /remote.php/caldav/calendars/xyz/pers%25c3%25b6nlich/ HTTP/1.1" 401 303 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.13.0 (like Gecko) Konqueror/5.13"
w.x.y.z - xyz [26/Aug/2015:19:50:14 +0200] "REPORT /remote.php/caldav/calendars/xyz/pers%25c3%25b6nlich/ HTTP/1.1" 404 225 "-" "Mozilla/5.0 (X11; Linux x86_64) KHTML/5.13.0 (like Gecko) Konqueror/5.13"



Reproducible: Always

Steps to Reproduce:
1. Add a CalDAV resource containing calendars with umlauts


Actual Results:  
calendars with umlauts don't sync, but no error message

Expected Results:  
calendars with umlauts sync
Comment 1 Grégory Oestreicher 2015-08-29 12:36:35 UTC
Strange, I can't reproduce this with master (the ö is correctly encoded), but I can reproduce the exact same double encoding when using the contact given in https://bugs.kde.org/show_bug.cgi?id=351652. Can you check if you have the same problem when importing this contact from the web interface? It shouldn't show up in your contacts from KDE.
Comment 2 Grégory Oestreicher 2015-08-29 20:22:28 UTC

*** This bug has been marked as a duplicate of bug 351652 ***
Comment 3 Grégory Oestreicher 2015-08-29 23:05:03 UTC
Reopening, looks like it's not a dup…
Comment 4 Grégory Oestreicher 2015-08-30 09:18:48 UTC
Git commit 82d18a069fb154e462f8b9e95c0294615ae58576 by Grégory Oestreicher.
Committed on 30/08/2015 at 09:17.
Pushed by goestreicher into branch 'Applications/15.08'.

Remove uses of deprecated KUrl::setEncodedPath as its behavior changed
Related: bug 351682
FIXED-IN: 15.08.1

M  +2    -2    resources/dav/common/davcollectionsfetchjob.cpp
M  +1    -1    resources/dav/common/davitemcreatejob.cpp
M  +1    -1    resources/dav/common/davitemmodifyjob.cpp
M  +1    -1    resources/dav/common/davitemsfetchjob.cpp
M  +1    -1    resources/dav/common/davitemslistjob.cpp
M  +1    -1    resources/dav/common/davprincipalhomesetsfetchjob.cpp
M  +1    -1    resources/dav/common/davprincipalsearchjob.cpp
M  +1    -1    resources/dav/resource/davfreebusyhandler.cpp

http://commits.kde.org/kdepim-runtime/82d18a069fb154e462f8b9e95c0294615ae58576