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 the code of
setResourceContent in the file RI looks like this
File file = getFile(resourceUri);
if (!file.exists())
throw new ObjectNotFoundException(resourceUri);
I hope this helps,
Oliver
On Fri, 3 Dec 2004 23:58:48 +0100, Oliver Zeigermann
<[EMAIL PROTECTED]> wrote:
> 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 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 called first and
> > then createResource. In my implementation of createResource, I check to
> > see if the resource already exists and if so throw
> > ObjectAlreadyExistsException. Since I just created the resource in
> > setResourceCountent, this causes me to throw and the WCK then calls
> > rollback.
> >
> > Can someone describe these two methods in a bit more detail and explain
> > what I should be doing in them?
> >
> > Should I just make createResource a no-op?
> >
> > Thanks
> > -John
> >
> > ---
> > John Rousseau
> > Archivas, Inc.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]