Ticket #7358 (closed Bug: fixed)
Lock lost after around 10 min idle
| Reported by: | yvesm | Owned by: | jfroche |
|---|---|---|---|
| Priority: | major | Milestone: | 3.0.4 |
| Component: | Infrastructure | Keywords: | lock edit |
| Cc: |
Description
Someone edits a document. Someone else goes to the document page and sees the edit button is not there with a message like "item was locked by Userx 2 minutes ago". Refreshing the page later I saw the 8 minute then the 9 minute warning and then the warning disappeared for an unknown reason.
I checked and the user still hadn't committed his modifications and was STILL in edit mode, so if I had believed Plone I would have edited the document and possibly overriden my colleague's edit-to-come (which is the behaviour that bit us in the past on a Plone 2.5 instance). So I thought there must be a lock timeout somewhere, but was told on plone-user that was not the case.
Change History
comment:1 Changed 4 years ago by limi
- Owner changed from somebody to jfroche
- Component changed from Unknown to Locking
comment:2 Changed 4 years ago by jfroche
- Status changed from new to assigned
Hello, there is a timeout but in the webdav code (which is set to default to 1800 s [don't ask me why infinite is 1800s for zope programmers ;) (see webdav.LockItem line 38]). As we base our locks on webdav lock items, i guess this is the timeout you see ... I will test this and change the timeout.
Future implementation of locks won't rely on webdav, we are planning on using zope.locking as explained here http://plone.org/products/plone/roadmap/189
comment:3 Changed 4 years ago by jfroche
uhm infinite timeout in webdav code is not 1800s in the code but 720s which looks like to be like your 10 min idle ;)
