hi,
i am new to webdav and have been using the slide client library to help me
build a custom application and i think using the slide client api has been
great.
i checked out the latest version of the client from the cvs repository, and
built it from the source files (the current version states 2.2pre1).
i thought i should share some information about what i have found and hope
it is helpful to some people.
in the 2.1 release, when connecting to a location that required
authentication, it would return a 401 status message and you could type in
your username and password. But in the current version it did not let you
type this information in, instead it just closed the client down.
i compared both versions of the 'webdavResource' class and found that on
line 1312 (from the 2.2pre1 version) e.g. the 'setHttpURL' method. The
statement "setProperties(action, depth);" had been surrounded in a
try/catch whereas in the 2.1 version it had not. It looks like this:
try {
setProperties(action, depth);
} catch (Exception e) {
// Ignore the exception if default properties cannot be loaded
}
so i commented out the try/catch bits and just had "setProperties(action,
depth);" on its own. I built it again and it now seems to be working (just
like 2.1 did). I think it might have had something to do with not throwing
the exception so it didn't get caught at a higher level.
im not sure what implications this will have, or why this was changed in the
current release, but it seems to be working now, but i haven't checked this
thoroughly nor compared the entire source code.
if there was a reason for the try/catch bit, please let me know.
hope this is helpful,
dawlton.
Disclaimer: My advice comes as is, without any guarantee. Use it at your
discretion. I cant be held responsible for your actions.
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]