[Cosmo-dev] Bug Roundup
Randy Letness
randy at osafoundation.org
Tue Oct 3 11:39:00 PDT 2006
Brian Moseley wrote:
> On 10/3/06, Randy Letness <randy at osafoundation.org> wrote:
>
>> Right, but you don't get the exception until you try to save. At that
>> point you are screwed. Ideally you want to block the request until
>> the first request is done.
>
> why screwed? why not sleep and then try to save again? the stale
> object exception shouldn't automatically roll back the transaction,
> should it?
I guess the question is at what layer the retry logic should occur. We
could retry a save at the dao layer, but then there are questions like
what happens when the first request did a MOVE? In that case,
shouldn't we return a not-found error? That would mean the retry
logic has to be at the dav layer. I guess one thing we could add is
to catch a stale-object exception and return 412 if that request had
an If-Match header.
-Randy
More information about the cosmo-dev
mailing list