You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Roman D <do...@gmail.com> on 2005/01/05 19:52:14 UTC

WCK createResource+setResourceContent

When PUTting file from windowsXP client, setResourceContent() is called 
before createResource().
With Database storage it's problematic. While in reference 
WebDavFileStore it's okay because you automatically create file with 
setResourceContent.
If you store objects in database you can't setResourceContent() if you 
didn't create object yet.
As a workaround I call createResource() from setResourceContent() if 
resource does not exists.

If this me again or something wrong with WCK logic?

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: WCK createResource+setResourceContent

Posted by Oliver Zeigermann <ol...@gmail.com>.
When setResourceContent() is called on a resource that does not exist
you should throw ObjectNotFoundException as explained in the Javadocs.

Oliver


On Wed, 05 Jan 2005 20:52:14 +0200, Roman D <do...@gmail.com> wrote:
> 
> When PUTting file from windowsXP client, setResourceContent() is called
> before createResource().
> With Database storage it's problematic. While in reference
> WebDavFileStore it's okay because you automatically create file with
> setResourceContent.
> If you store objects in database you can't setResourceContent() if you
> didn't create object yet.
> As a workaround I call createResource() from setResourceContent() if
> resource does not exists.
> 
> If this me again or something wrong with WCK logic?
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org