From: Ingo Brunberg <[EMAIL PROTECTED]> Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Slide 2.0 Webdav lib : Pb with WebdavFile.listFiles() Date: Wed, 12 May 2004 15:45:57 +0200
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]
_________________________________________________________________
Getting married? Find tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
