You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2005/10/02 11:26:30 UTC
DO NOT REPLY [Bug 29250] -
PROPFIND response does not handle trailing "/" as it "SHOULD"
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=29250>.
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=29250
------- Additional Comments From will@fastforward.ch 2005-10-02 11:26 -------
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
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org