Unable to open handle for document revision
Status: Beta
Brought to you by:
whitemice
When a file is modified via a Windows mount it appears to cause a document versioning issue
DEBUG:context:duration of document::get was 0.006
ERROR:http:Unable to open handle for document revision objectId#95120 revision#None
Traceback (most recent call last):
File "/home/awilliam/projects/coils/coils/net/handler.py", line 163, in process_request
getattr(handler, 'do_{0}'.format(self.command))()
File "/home/awilliam/projects/coils/coils/protocol/dav/groupware/documentobject.py", line 143, in do_GET
handle = self.context.run_command('document::get-handle', id=self.entity.object_id)
File "/home/awilliam/projects/coils/coils/core/context.py", line 293, in run_command
command.run()
File "/home/awilliam/projects/coils/coils/logic/blob/get_handle.py", line 54, in run
encoding=self._encoding)
File "/home/awilliam/projects/coils/coils/logic/blob/command.py", line 61, in get_handle
format(document.object_id, version))
CoilsException: Unable to open handle for document revision objectId#95120 revision#None
DEBUG:context:Closing context 0f4d9c2575c546c9b3f426fa9ad118f8
DEBUG:coils.http.24480:Incremented request count
No, it looks like it works now. Scratches head.
There is some ORM whining
value = self.callable_(state, passive)
localhost - - [25/Nov/2012 00:06:00] "PUT /dav/Projects/test123/Documents/84CF40A47CE1B33A8B850F3F31952.jpg HTTP/1.0" 204 -
/home/awilliam/projects/coils/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:453: SAWarning: Multiple rows returned with uselist=False for lazily-loaded attribute 'Document.version'
value = self.callable(state, passive)
Okay, got it again after saving a document from wordpad and they trying to open it.
Now that the log records the expected path...
Interesting, that blob exists but has a different file extension.
Perhaps this is the tmp-file-rename-thing. Does that create a new document or a new version? I think we need to trace the entire conversation.