Bug 328385

Summary: Encoding problem with WebDAV
Product: [Frameworks and Libraries] frameworks-kio Reporter: juanarcadio
Component: WebDAVAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adawit, calvo.roger, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description juanarcadio 2013-12-03 13:50:07 UTC
When I try to download a file into a folder called "Prácticas", I always get 404, File not found.
I can upload files into this folder successfully. But, it fails when I want to download.

In the server I have this requests:

"PROPFIND /dav/4918_P_2013_N_N/Pr%C3%A1cticas/ HTTP/1.1"
HTTP Status Code: 207 

"GET /dav/4918_P_2013_N_N/Pr%C3%A1cticas/QFotoPaint2.zip HTTP/1.1"
HTTP Status Code: 302 

"GET /access/content/group/4918_P_2013_N_N/Pr%EF%BF%BDcticas/QFotoPaint2.zip HTTP/1.1"
HTTP Status Code: 404

As you can see, the third request is wrong, it seems an encoding problem.

Reproducible: Always
Comment 1 Dawit Alemayehu 2014-03-08 20:43:20 UTC
Can you provide the whole response headers and not just a snippet? It seems that the URL is double percent encoded, but the entire response from the server as well as the next request to the client is missing to see where such problem might be happening.
Comment 2 juanarcadio 2014-03-10 10:50:23 UTC
(In reply to comment #1)
> Can you provide the whole response headers and not just a snippet? It seems
> that the URL is double percent encoded, but the entire response from the
> server as well as the next request to the client is missing to see where
> such problem might be happening.

The server redirect response is: /access/content/group/4918_P_2013_N_N/Prácticas/QFotoPaint2.zip

The problem could be on the server side:
https://jira.sakaiproject.org/browse/SAK-25848
Comment 3 Christoph Feck 2014-04-21 18:38:38 UTC
Dawit, does comment #2 provide the requested information? Please set the bug status.
Comment 4 Christoph Feck 2014-05-04 21:47:04 UTC
No reply, changing status.
Comment 5 Dawit Alemayehu 2014-09-27 15:01:22 UTC
(In reply to juanarcadio from comment #2)
> (In reply to comment #1)
> > Can you provide the whole response headers and not just a snippet? It seems
> > that the URL is double percent encoded, but the entire response from the
> > server as well as the next request to the client is missing to see where
> > such problem might be happening.
> 
> The server redirect response is:
> /access/content/group/4918_P_2013_N_N/Prácticas/QFotoPaint2.zip
> 
> The problem could be on the server side:
> https://jira.sakaiproject.org/browse/SAK-25848

This to me seems to be an upstream issue. It is the server's responsibilty to properly encode the redirect request URL. See http://tools.ietf.org/html/rfc3986#appendix-D.2
Comment 6 Justin Zobel 2022-11-30 05:28:36 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-12-15 05:13:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-30 05:23:57 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!