Locking a file fails with a tuple indices type error
Status: Beta
Brought to you by:
whitemice
Attempting to place a lock on an object fails with a tuple indices error.
DEBUG:http:Selected <DocumentObject path="/dav/Projects/test123/Documents/Untitled1.png"/> as handler
DEBUG:pathobject.Untitled1.png:Lock info for LOCK operation: (True, <Lock token="opaquelocktoken:019699f4-6809-4408-853c-42dfc06352fa" objectId=94410 contextId=23330 granted=1353797630 expires=1353801230 exclusive="Y">)
DEBUG:context:Context commit requested.
DEBUG:context:Context commit completed.
ERROR:http:tuple indices must be integers, not str
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/net/foundation/dav.py", line 696, in do_LOCK
if ('TEXT' in lockinfo['owner']):
TypeError: tuple indices must be integers, not str
Lock attempt payload
Lock parser successfully grinds that into -
Lock operation succeeds generating a Lock object.
We are just failing in generating the lock response.
Fixed in r4360 (b02f4292790d)