I haven't had a chance to test this with other webDAV servers so I don't know the full implications; but the problem I was having seems to have nothing to do with xml, instead it was how the URIs of collections were/are being constructed.

In WebdavResource, line 1086: URIUtil.getName(href) is used to get the name of the item; however as per the javadocs this method returns an empty string if href ends with a slash. At least with subversion, all hrefs to collections are reported as ending with a slash; therefore no sub-collections are ever reported by the WebdavResource.listWebdavResources() or associated methods.

My fix: replace URIUtil.getName(href) with getName(href) this seems to work fine for me; although as I said I am not sure what, if any, implications this might have on other functionality.

--
   Robert r. Sanders
   Chief Technologist
   iPOV
   www.ipov.net


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to