Issue 4448

Title
WebDAV error when adding file
Priority
bug
Status
resolved
Nosy list
ced, jesteve, roundup-bot
Assigned to
ced
Keywords
review

Created on 2015-01-02.19:32:18 by jesteve, last changed 78 months ago by roundup-bot.

Messages

New changeset 64d3c218bfe0 by C?dric Krier in branch '3.4':
Cache.resets must be executed inside a Transaction
http://hg.tryton.org/trytond/rev/64d3c218bfe0
New changeset f93147d61d76 by C?dric Krier in branch 'default':
Cache.resets must be executed inside a Transaction
http://hg.tryton.org/trytond/rev/f93147d61d76
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2015-01-29.19:13:28
Please test patch at review13921002
Author: [hidden] (jesteve)
Date: 2015-01-02.19:32:17
Can not be added a file by WebDAV in v3.4 (v3.2 works well). Traceback:

localhost - - [02/Jan/2015 18:13:38] "PROPFIND /database/Tercers/PartyName-8 HTTP/1.1" 207 -
----------------------------------------
Exception happened during processing of request from ('::ffff:127.0.0.1', 35247, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/home/path/trytond/trytond/protocols/webdav.py", line 531, in finish
    Cache.resets(dbname)
  File "/home/path/trytond/trytond/cache.py", line 100, in resets
    with Transaction().new_cursor():
  File "/home/path/trytond/trytond/transaction.py", line 154, in new_cursor
    database = Database(self.cursor.database_name).connect()
AttributeError: 'NoneType' object has no attribute 'database_name'
----------------------------------------
localhost - - [02/Jan/2015 18:13:38] "PROPFIND /database/Tercers/PartyName-8 HTTP/1.1" 207 -
----------------------------------------
Exception happened during processing of request from ('::ffff:127.0.0.1', 35249, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/home/path/trytond/trytond/protocols/webdav.py", line 531, in finish
    Cache.resets(dbname)
  File "/home/path/trytond/trytond/cache.py", line 100, in resets
    with Transaction().new_cursor():
  File "/home/path/trytond/trytond/transaction.py", line 154, in new_cursor
    database = Database(self.cursor.database_name).connect()
AttributeError: 'NoneType' object has no attribute 'database_name'
----------------------------------------
localhost - - [02/Jan/2015 18:13:38] "HEAD /database/Tercers/PartyName-8/Document%20sense%20nom HTTP/1.1" 404 -
----------------------------------------
Exception happened during processing of request from ('::ffff:127.0.0.1', 35251, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/home/path/trytond/trytond/protocols/webdav.py", line 531, in finish
    Cache.resets(dbname)
  File "/home/path/trytond/trytond/cache.py", line 100, in resets
    with Transaction().new_cursor():
  File "/home/path/trytond/trytond/transaction.py", line 154, in new_cursor
    database = Database(self.cursor.database_name).connect()
AttributeError: 'NoneType' object has no attribute 'database_name'
----------------------------------------
localhost - - [02/Jan/2015 18:13:39] "PUT /database/Tercers/PartyName-8/Document%20sense%20nom HTTP/1.1" 403 -
----------------------------------------
Exception happened during processing of request from ('::ffff:127.0.0.1', 35253, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/home/path/trytond/trytond/protocols/webdav.py", line 531, in finish
    Cache.resets(dbname)
  File "/home/path/trytond/trytond/cache.py", line 100, in resets
    with Transaction().new_cursor():
  File "/home/path/trytond/trytond/transaction.py", line 154, in new_cursor
    database = Database(self.cursor.database_name).connect()
AttributeError: 'NoneType' object has no attribute 'database_name'
----------------------------------------
localhost - - [02/Jan/2015 18:13:39] "PROPFIND /database/Tercers/PartyName-8/Document%20sense%20nom HTTP/1.1" 404 -
----------------------------------------
Exception happened during processing of request from ('::ffff:127.0.0.1', 35255, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/home/path/trytond/trytond/protocols/webdav.py", line 531, in finish
    Cache.resets(dbname)
  File "/home/path/trytond/trytond/cache.py", line 100, in resets
    with Transaction().new_cursor():
  File "/home/path/trytond/trytond/transaction.py", line 154, in new_cursor
    database = Database(self.cursor.database_name).connect()
AttributeError: 'NoneType' object has no attribute 'database_name'
----------------------------------------
History
Date User Action Args
2015-02-10 00:48:43roundup-botsetmessages: + msg20130
2015-02-04 23:17:25roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg20042
2015-01-29 19:20:10reviewbotsetreviews: 13921002
keyword: + review
2015-01-29 19:13:28cedsetstatus: chatting -> testing
assignedto: ced
component: + trytond
messages: + msg19951
nosy: + ced
2015-01-02 19:32:18jestevecreate