Just a wild guess ... I think you have stumbled over a bug in Commons Httpclient, that was recently fixed. To be sure, check out and build the latest Httpclient from their CVS 2_0_Branch and replace the version that comes with Slide by that. I know, it's a bit work.
Ingo > Hi, > > When I try to get the child resources of a file (with a listFiles call), I > get strange URLs : > http://localhost8080:8080/slide/files/.... > > Any idea about this problem ? > Thanks > Olivier > P.S. I am using Slide Client 2.0 library, and an except of my test code is > here after. > ------------------------------------------------------ > > ... > String path = "http://localhost:8080/slide/files/"; > WebdavFile file = null; > > try { > httpURL = uriToHttpURL(path); > file = new WebdavFile(httpURL); > } catch (URIException e) { > e.printStackTrace(); > } catch (NullPointerException e) { > e.printStackTrace(); > } > File[] listOfFiles = file.listFiles(); > ... > > The methode file.listFiles() calls getChildResources(). > > getChildResources() return the following list > (org.apache.webdav.lib.WebdavResources) > {doc1.doc=http://localhost8080:8080/slide/files/doc1.doc, > dossier2=http://localhost8080:8080/slide/files/dossier2, > texte1.txt=http://localhost8080:8080/slide/files/texte1.txt, > dossier1=http://localhost8080:8080/slide/files/dossier1, > doc2.doc=http://localhost8080:8080/slide/files/doc2.doc, > texte2.txt=http://localhost8080:8080/slide/files/texte2.txt} > > ------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
