[Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jerome Alet

Hi,

I've just tested webDAV access for the very first time using cadaver,
so maybe this is a known problem.

I've locked some objects using cadaver's lock command, and then opened
a browser keeping cadaver's connection opened.

then I've searched for this locks using the ZMI and also a method of 
my own.

All worked fine, the locks were found.

Then some time later I've retried to find the locks, and both the
ZMI and my method returned no lock. However in cadaver the locks
still seemed to be there... 

Then I've unlocked the objects and relocked them in cadaver and 
retried, this time the locks were found again...

I hadn't the time to do some more testing but I find this
surprising.

Does anyone have seen the same problem ?

FYI Zope 2.5.0 + Python 2.1.2 both up-to-date Debian Woody
packages.

bye,

Jerome Alet

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Andreas Jung


- Original Message - 
From: Jerome Alet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 07, 2002 13:38
Subject: [Zope-dev] WebDAV locks disappearing...


 Hi,
 
 I've just tested webDAV access for the very first time using cadaver,
 so maybe this is a known problem.
 
 I've locked some objects using cadaver's lock command, and then opened
 a browser keeping cadaver's connection opened.
 
 then I've searched for this locks using the ZMI and also a method of 
 my own.
 
 All worked fine, the locks were found.
 
 Then some time later I've retried to find the locks, and both the
 ZMI and my method returned no lock. However in cadaver the locks
 still seemed to be there... 
 
 Then I've unlocked the objects and relocked them in cadaver and 
 retried, this time the locks were found again...
 

perhaps a problem with the lock timeout ? i think webdav clients
can specify a timeout for locks.  for further investigations
you can use the WebDAVLogger product to capture webdav related
traffic.

 - aj 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jerome Alet

On Thu, Mar 07, 2002 at 01:55:45PM -0500, Andreas Jung wrote:

 From: Jerome Alet [EMAIL PROTECTED]
  
  All worked fine, the locks were found.
  
  Then some time later I've retried to find the locks, and both the
  ZMI and my method returned no lock. However in cadaver the locks
  still seemed to be there... 
 
 perhaps a problem with the lock timeout ? i think webdav clients
 can specify a timeout for locks.  

I don't think so since the client still saw the locks.
The Zope server however showed that they had disappeared, as
seen from the ZMI and from my method's result.

 for further investigations
 you can use the WebDAVLogger product to capture webdav related
 traffic.

Ok I'll try to do this.

thanks for the tip !

bye,

Jerome Alet


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jeffrey P Shell

A WebDAV client may request a timeout length for a lock, but it's basically
just a suggestion.  You say you investigated again some time later.
Zope's default timeout is thirty minutes.  Clients can ask for longer ones
and Zope will obey, but the 30 minutes is granted for 'infinite' timeout
requests (the spec says that the server may decide the timeout time
independent of the clients request).  The timeout should get refreshed with
every HTTP request made by you (the lock owner).  But the timeout also
exists so that the problem of Person X locks a document for editing, and
then leaves in a hurry (forgetting to release his lock).  Person Y really
needs to edit the document, but it's held hostage by X's lock.

Cadaver may be caching the locks.  Since HTTP/WebDAV are stateless, you have
to refresh your listing in order to see if locks are still there.  Most GUI
based WebDAV clients have a refresh listing option, which is the only way
they can know of new members in a collection and new lock states.

On 3/7/02 11:38 AM, Jerome Alet [EMAIL PROTECTED] wrote:

 Hi,
 
 I've just tested webDAV access for the very first time using cadaver,
 so maybe this is a known problem.
 
 I've locked some objects using cadaver's lock command, and then opened
 a browser keeping cadaver's connection opened.
 
 then I've searched for this locks using the ZMI and also a method of
 my own.
 
 All worked fine, the locks were found.
 
 Then some time later I've retried to find the locks, and both the
 ZMI and my method returned no lock. However in cadaver the locks
 still seemed to be there...
 
 Then I've unlocked the objects and relocked them in cadaver and
 retried, this time the locks were found again...
 
 I hadn't the time to do some more testing but I find this
 surprising.
 
 Does anyone have seen the same problem ?
 
 FYI Zope 2.5.0 + Python 2.1.2 both up-to-date Debian Woody
 packages.

-- 
Jeffrey P Shell 
www.cuemedia.com



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )