WCK API question

2004-12-03 Thread John Rousseau
I'm trying to understand the BasicWebdavStore API a bit better. I was expecting that during a PUT, createResource() would be called with the name of a new resource and then setResourceContent() would be then called to supply the content itself. What I'm seeing is that setResourceContent is being

Re: WCK API question

2004-12-03 Thread Oliver Zeigermann
What you expected is the way it should be. If it is not this is a bug. I will check this with the reference implementation. Oliver On Fri, 03 Dec 2004 15:59:59 -0500, John Rousseau <[EMAIL PROTECTED]> wrote: > I'm trying to understand the BasicWebdavStore API a bit better. > > I was expecting th

Re: WCK API question

2004-12-03 Thread Oliver Zeigermann
Just checked it and it works the way it should be. Maybe the confusion is caused by Slide's weird init proc where it tries to set content before creation of a folder? In this case you will have to throw an ObjectNotFoundException as you can not store anything to a non-existing file. The start of

Re: WCK API question

2004-12-06 Thread John Rousseau
H. That's just not what I am seeing. I have a printout in each of my BasicWebdavStore implementation methods. Here's what I see when I use the slide webdav client to "put /etc/resolv.conf" into "/music" in my system. %% WebdavStoreImpl: begin %% objectExists: /music/resolv.conf %% objectExist

Re: WCK API question

2004-12-06 Thread Oliver Zeigermann
OK, then just throw the ObjectNotFoundException if the object is not there as indicated in the last post. Concerning the occurennce of the method calls, they are just needed by the Slide core... Oliver On Mon, 06 Dec 2004 10:51:18 -0500, John Rousseau <[EMAIL PROTECTED]> wrote: > H. That's j

Re: WCK API question

2004-12-06 Thread John Rousseau
But if I throw ObjectNotFoundException from createResource, then (as I indicated in my initial post) rollback is called and the client gets a "412 Precondition Failed". Thanks -John Oliver Zeigermann wrote: OK, then just throw the ObjectNotFoundException if the object is not there as indicated i

Re: WCK API question

2004-12-06 Thread Oliver Zeigermann
You should throw in setResourceCountent, not in createResource. Oliver On Mon, 06 Dec 2004 12:10:04 -0500, John Rousseau <[EMAIL PROTECTED]> wrote: > But if I throw ObjectNotFoundException from createResource, then (as I > indicated in my initial post) rollback is called and the client gets a >