[Osr-101] Locked resource exception
Michael Wechner
michael.wechner at wyona.com
Wed Aug 22 11:15:59 CEST 2007
Andreas Wuest wrote:
> Hi
>
> On 22.8.2007 0:19 Uhr, Michael Wechner wrote:
>
>> Hi
>>
>> I think we still haven't defined the "locked resource exception".
>
>
> Indeed.
>
>> I would like to suggest the following:
>>
>> Sever Response: 409 (Conflict) (or maybe some other 4xx status code)
>
>
> 409 is good.
>
>> Response Body:
>>
>> <?xml version="1.0"?>
>>
>> <exception xmlns="http://www.wyona.org/neutron/1.0"
>> type="locked-resource">
>> <message>Resource is already checked out by another user:
>> lenya!</message>
>> <locked-resource>
>> <!--
>> - user info, e.g. how to contact this user
>> - checkout time
>> - URL to break the lock
>> - ...
>> -->
>> </locked-resource>
>> </exception>
>>
>>
>> WDTY?
>
>
> I like it. Please go ahead!
>
ok, I will add an amendment and start a server side implementation.
Cheers
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61
More information about the Osr-101
mailing list