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
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
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
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
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
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
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
>