I don't have the time to investigate this further but I remember that
bug has already been reported. You might want to search the archives.

And as far as I remember this one's already been fixed, so please try
a more recent version.

Ingo

> Client: Slide 2.0 WebDAV (downloaded as jakarta-slide-webdavclient-bin-2.0)
> Server: jakarta-slide-2.0-tomcat-5.0.19
> 
> 
> On Mon, 25 Oct 2004 15:43:44 +0200, Ingo Brunberg <[EMAIL PROTECTED]> wrote:
> 
> > Which version are you using?
> >
> >> I am using the slide client API to read out information from slide, but
> >> get problems when trying to go beyond level one.
> >>
> >> When I run the following simple code:
> >>
> >>          WebdavResource resource;
> >>          < resource initialized >
> >>
> >>          String host = resource.getHost();
> >>          String uri = resource.getHttpURL().getURI();
> >>
> >>          WebdavResource[] resources =
> >> resource.getChildResources().listResources();
> >>
> >>          for (int i=0; i<resources.length; i++){
> >>              String host2 = resources[i].getHost();
> >>              String uri2 = resources[i].getHttpURL().getURI();
> >>          }
> >>
> >>
> >> I get the these (correct) values for host and uri:
> >> "localhost"
> >> "http://localhost:8082/slide/files";
> >>
> >> But in the for loop, after one iteration, host2 and uri2 has the  
> >> following
> >> (wrong) values:
> >> "localhost8082"
> >> "http://localhost8082:8082/slide/files/Readme.txt";
> >>
> >> It seems as the port is added to the host name...
> >> If I do resources[i].getChildResources() inside the for loop (on a
> >> collection resource), I get an java.net.UnknownHostException.
> >> Is this a bug, or just me using the API wrong way?
> >>
> >> What is the difference between
> >> resource.getChildResources().listResources() and
> >> resource.listWebdavResources()?
> >> I get the same result for both.
> >>
> >> Hope someone can enlighten me on this one...
> >>
> >> Roar Skullestad
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -- 
> --------------------------
> Roar Skullestad
> 
> Email: [EMAIL PROTECTED]
> Mobile: +354 693 0448

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

Reply via email to