Re: client webdav lib - resource not found
Tiffany Dodge <[email protected]> Thu, 15 Mar 2007 16:08:52 -0700
| Newsgroups | gmane.comp.jakarta.slide.user |
|---|---|
| Message-ID | <[email protected]> |
Correcting a typo below (the escapedHref value - removing the comma) On Mar 15, 2007, at 3:54 PM, Tiffany Dodge wrote: > Hello, > > I've run into a problem where slide can't find a file right after > it has been uploaded. The file does exist on the DAV server (I > checked). FYI, I am using slide 2.1 with Apache 1.3. > > Basically, I do this ... > - upload a file > - get the childResources > - and then try to getResource(filename) for the file that I just > uploaded. > > From my debugging (which could totall be wrong), the problem is in > WebdavResource.java, in the method setWebdavProperties ... > > int lenDiff = escapedHref.length() - httpURLPath.length(); > > lenDiff is zero, but the paths are completely different. For > example, they could be ... > > escapedHref = /webdavtest/abcdefghijklm > httpURLPath = /webdavtest/uploading/xxy > > So the local var "itself" ends up being true in this case and the > workingResource is not added to the childResources at the end of > the method, as it should. That in turn means that the resource > cannot be found. > > Has anyone else experienced this? If so, what did you do to fix > it? Any help would be appreciated. > > Thanks, > Tiff >