DO NOT REPLY [Bug 32886] - client webdav lib doesn't return child collections using listwebdavresources

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
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 [email protected]  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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.