Bug 23392 - escaped absolute path not valid for report mehtod.
Summary: escaped absolute path not valid for report mehtod.
Status: CLOSED FIXED
Alias: None
Product: Slide
Classification: Unclassified
Component: WebDAV client (show other bugs)
Version: Nightly
Hardware: All Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-24 19:46 UTC by Haiying Qiao
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
A patch to correct this problem (501 bytes, patch)
2004-08-27 13:24 UTC, Paulo Albuquerque
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Haiying Qiao 2003-09-24 19:46:24 UTC
I am using the current nightly build and got the following exception. 
I get arround of the by encode the uri. I think this could be bug. 
I enter the new bug since I think the bug 11410 has been fixed, though it is 
similar. 

java.lang.IllegalArgumentException: Invalid uri '/slide/files/folders for 
test1/vicet.doc': escaped absolute path not valid
	at org.apache.commons.httpclient.HttpMethodBase.<init>
(HttpMethodBase.java:285)
	at org.apache.webdav.lib.methods.HttpRequestBodyMethodBase.<init>
(HttpRequestBodyMethodBase.java:115)
	at org.apache.webdav.lib.methods.XMLResponseMethodBase.<init>
(XMLResponseMethodBase.java:128)
	at org.apache.webdav.lib.methods.ReportMethod.<init>
(ReportMethod.java:126)
	at org.apache.webdav.lib.methods.ReportMethod.<init>
(ReportMethod.java:163)
	at org.apache.webdav.lib.WebdavResource.reportMethod
(WebdavResource.java:2913)
	at mil.navy.nrl.cee.vfs.domain.impl.webdav.WebdavFileImpl.getVersionInfo
(WebdavFileImpl.java:392)
Comment 1 Ingo Brunberg 2003-09-25 12:34:47 UTC
This looks like a bug in the application, not the Slide client.

How do you create the HttpURL object you pass to reportMethod()?
You are probably using the constructor HttpURL(String escapedHttpURL) and pass
it an unescaped URL string whereas an escaped URL is expected.
Comment 2 Haiying Qiao 2003-09-25 15:30:18 UTC
You are right. This my problem. I fixed the problem by call URLUtil.URLEncode
(uri, "UTF-8")). How if I call URIUtil.escape(uri), I got an excpetion(Mapping 
configuration error fro request URI /) for the report method. (PROPFIND works 
fine).

Thanks. 
Comment 3 Paulo Albuquerque 2004-08-27 13:24:35 UTC
Created attachment 12547 [details]
A patch to correct this problem
Comment 4 Paulo Albuquerque 2004-08-27 13:26:12 UTC
I encountered this bug too, I already submited a patch. thanx
Comment 5 Ingo Brunberg 2004-08-30 09:23:15 UTC
Patch applied to HEAD and the 2.1 branch.
This was actually a bug in the command line client, where the given URL was
assumed to be already escaped.