Summary: | PROPFIND response does not handle trailing "/" as it "SHOULD" | ||
---|---|---|---|
Product: | Slide | Reporter: | Wolfgang Gerteis <wolfgang.gerteis> |
Component: | WebDAV Server | Assignee: | Slide Developer List <slide-dev> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | other |
Description
Wolfgang Gerteis
2004-05-27 17:29:39 UTC
I've tripped over this one too, trying to get an ls from an apache mod_webdav enabled server. Here's a fix to this problem: In WebdavResources.java in the setWebdavProperties(Enumeration responses) method after String myURI = httpURL.getEscapedURI(); do the following: // 1. get the current href into a variable you can mess around with: String helperHref = href; // 2. check if it ends with a trailing slash if (helperHref.endsWith("/")) { helperHref = helperHref.substring(0, helperHref.length()-1); } // 3. use the "fixed" helperHref in the next step char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/") + URIUtil.getName(helperHref)).toCharArray(); Now if one of the slied committers could verify this fix and (if considerd o.k.) check it in, then this bug could be closed. Cheers, Will |