jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Pernica <jan.pern...@pernica.org>
Subject Re: Locking
Date Wed, 22 Sep 2010 12:46:00 GMT
  Hello Fabian

On 22.9.2010 13:51, Fabián Mandelbaum wrote:
> Hello Jan,
>
> indeed there's always a few PROPFIND (usually starting at / ) to find
> out about the DAV capabilities of the server (I guess, I didn't
> confirm this, but seen all DAV clients do the same thing), and then
> the 'real' requests are performed (LOCK, PUT, UNLOCK)
>
> Even if it would make perfect sense to do the LOCK 1st and then the
> GET, when opening a file, I think it's more conservative to do the GET
> first, and only do the LOCK if the file could be gotten fine (GET
> succeeded).
This scenario is OK.
> Maybe the LOCK, GET, UNLOCK sequence you are seeing is because there's
> some network (or other) problem when performing the GET and the file
> cannot be properly retreived?
The problem is than OpenOffice not all the time sends LOCK/UNLOCK and is 
sending PUT after UNLOCL :-(

Thank you for your time

Jan
> Food for thought. Good luck!
>
> 2010/9/22 Jan Pernica<jan.pernica@pernica.org>:
>>   Hello Fabian
>>
>> MS Word asks dav to lock the file. OO does not. :-(
>> I thought that I can ask client to send LOCK/UNLOCK. Interesting is that
>> Linux OO sends LOCK/UNLOCK but in very strange order.
>> methods called:
>> LOCK
>> GET
>> UNLOCK
>> PUT
>>
>> and few PROPFIND
>>
>> I would expect PUT to be in brackets of LOCK/UNLOCK
>>
>> thank you anyway
>>
>> Jan
>>
>>
>> On 22.9.2010 12:28, Fabián Mandelbaum wrote:
>>> Hello Jan,
>>>
>>> usually it's the WebDAV client (in this case OpenOffice 3.2.1) that
>>> should (must?) lock the file. That is, it's not the server that's
>>> going to automatically lock the file when someone opens it, but it's
>>> the client (XML editor) that asks the server explicitly to lock the
>>> file when opening it and then to unlock it when closing the file.
>>>
>>> For example, XMLMind's XXE works this way (didn't try lots of other
>>> editors, but I think this is the way things are to be done).
>>>
>>> Good luck.
>>>
>>> 2010/9/22 Jan Pernica<jan.pernica@pernica.org>:
>>>>   Hi. I just found jackrabbit as a good start point for our WebDAV
>>>> project.
>>>> I have run standalone server to find features of jackrabbit and I found
>>>> following problem:
>>>> Using OpenOffice 3.2.1 I am able to open the same document from two
>>>> places
>>>> and both of them can write the content.
>>>>
>>>> the questions is:
>>>> How to lock document to be read-only if it is edited by some user?
>>>>
>>>> Thanks for any hints
>>>>
>>>> Regards
>>>>
>>>> Jan
>>>>
>>>
>> --
>> Děkuji a s pozdravem
>>
>> Jan Pernica
>> ===========================================
>> Pernica IT Solutions
>> Masarykovo náměstí 8
>> 664 51 Šlapanice
>> Czech Republic
>> tel,fax: +420 544 245 068
>> mobile: +420 777 634 665
>> mailto:jan.pernica@pernica.org
>> http://www.pernica.org
>>
>>
>>
>>
>
>

-- 
Děkuji a s pozdravem

Jan Pernica
===========================================
Pernica IT Solutions
Masarykovo náměstí 8
664 51 Šlapanice
Czech Republic
tel,fax: +420 544 245 068
mobile: +420 777 634 665
mailto:jan.pernica@pernica.org
http://www.pernica.org




Mime
View raw message