DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29987>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29987 propfind fails to return properties for a resource when uri contains special characters. Summary: propfind fails to return properties for a resource when uri contains special characters. Product: Slide Version: 2.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: WebDAV client AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] propfind fails to return properties for a resource when uri contains special characters. For example if a folder has the name "/files/test (withparens)" WebdavResource.setWebdavProperties(Enumeration responses) fails when performing a compare between the href and the httpURL. Basically href's value is "/files/test%20%28withparens%29" and httpURLs path is "/files/test%20 (withparens)". The specific code in question is as follows: String href = response.getHref(); if (!href.startsWith("/")) href = URIUtil.getPath(href); String httpURLPath = httpURL.getEscapedPath(); int compared = httpURLPath.compareTo(href); This code is in the jakarta-slide-webdavclient-src-2.0.zip. File is WebdavResource.java line 918-922 After digging deeper, found the href is encoded using method "URLEncode(String path, String enc)" in class org/apache/util/URLUtil and httpURL is encoded using method "encode(String original, BitSet allowed,String charset)" in class org/apache/commons/httpclient/URI. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
