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 2006/04/11 11:59:09 UTC
DO NOT REPLY [Bug 32886] - client webdav lib doesn't return child collections using listwebdavresources
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=32886>.
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=32886
------- Additional Comments From igor.karpov@mail.ru 2006-04-11 10:59 -------
I bumped into the problem as well. 2.1 didn't work for me.
A solution was to change a part of WebdavResource.setWebdavProperties after
if (!itself) {
String myURI = httpURL.getEscapedURI();
...
to
if (!itself) {
String myURI = httpURL.getEscapedURI();
final String adjustedHref = href.endsWith("/") ?
href.substring(0, href.length() - 1) : href;
final String name = URIUtil.getName(adjustedHref);
char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
+ name).toCharArray();
the problem is that children's hrefs can end with '/' and in this case
URIUtil.getName returns empty string. Because of that childURI is the same as
myURI (bug!!!)
--
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