openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #07945
[Bug 1372859] [NEW] [6.1] document_webdav "500 internal server error" with pywebdav 0.9.8
Public bug reported:
- Debian Wheezy on amd64 with Python 2.7 and PyWebDav 0.9.8 (debian package python-webdav 0.9.8-3)
- OCB 6.1
- Server revno: 4328
- addons revno: 6847
- web revno: 2523
After enabling the crm_caldav and document_webdav modules, I try to
access any webdav folder and I get an "500 Internal Server Error"
message.
The log shows:
2014-09-23 08:56:44,837 29663 WARNING ? webdav: Cannot calculate own address: '_fileobject' object has no attribute 'getsockname'
2014-09-23 08:56:44,852 29663 INFO ? werkzeug: 192.168.1.68 - - [23/Sep/2014 08:56:44] "GET /webdav/llerbdb/Documents HTTP/1.1" 500 -
2014-09-23 08:56:44,855 29663 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
execute(app)
File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 413, in application
result = handler(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 255, in wsgi_webdav
return http_to_wsgi(http_dir)(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 309, in wsgi_handler
handler = http_dir.instanciate_handler(con, environ['REMOTE_ADDR'], server)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/service/websrv_lib.py", line 104, in instanciate_handler
handler = self.handler(noconnection(request), client_address, server)
File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/mnt/lldata/openerp/ocb-6.1/ocb-addons/document_webdav/webdav_server.py", line 97, in handle
self._init_buffer()
AttributeError: DAVHandler instance has no attribute '_init_buffer'
I tried the same with the official OpenERP 6.1, where I cannot even
install the "crm_caldav" module, I get a warning that pywebdav (>=0.94)
is not installed. I guess I'm hitting this bug (which does not apply to
OCB?):
https://bugs.launchpad.net/openobject-addons/+bug/1008513
Apologies if the above information is incomplete, I'm new to OpenERP and
OCB in particular. Please let me know if I can provide more information.
Thank you,
Dimitris
** Affects: ocb-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Community Backports, which is subscribed to OpenERP Community Backports
(Addons).
https://bugs.launchpad.net/bugs/1372859
Title:
[6.1] document_webdav "500 internal server error" with pywebdav 0.9.8
Status in OpenERP Community Backports (Addons):
New
Bug description:
- Debian Wheezy on amd64 with Python 2.7 and PyWebDav 0.9.8 (debian package python-webdav 0.9.8-3)
- OCB 6.1
- Server revno: 4328
- addons revno: 6847
- web revno: 2523
After enabling the crm_caldav and document_webdav modules, I try to
access any webdav folder and I get an "500 Internal Server Error"
message.
The log shows:
2014-09-23 08:56:44,837 29663 WARNING ? webdav: Cannot calculate own address: '_fileobject' object has no attribute 'getsockname'
2014-09-23 08:56:44,852 29663 INFO ? werkzeug: 192.168.1.68 - - [23/Sep/2014 08:56:44] "GET /webdav/llerbdb/Documents HTTP/1.1" 500 -
2014-09-23 08:56:44,855 29663 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
execute(app)
File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 413, in application
result = handler(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 255, in wsgi_webdav
return http_to_wsgi(http_dir)(environ, start_response)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/wsgi/core.py", line 309, in wsgi_handler
handler = http_dir.instanciate_handler(con, environ['REMOTE_ADDR'], server)
File "/mnt/lldata/openerp/ocb-6.1/ocb-server/openerp/service/websrv_lib.py", line 104, in instanciate_handler
handler = self.handler(noconnection(request), client_address, server)
File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/mnt/lldata/openerp/ocb-6.1/ocb-addons/document_webdav/webdav_server.py", line 97, in handle
self._init_buffer()
AttributeError: DAVHandler instance has no attribute '_init_buffer'
I tried the same with the official OpenERP 6.1, where I cannot even
install the "crm_caldav" module, I get a warning that pywebdav
(>=0.94) is not installed. I guess I'm hitting this bug (which does
not apply to OCB?):
https://bugs.launchpad.net/openobject-addons/+bug/1008513
Apologies if the above information is incomplete, I'm new to OpenERP
and OCB in particular. Please let me know if I can provide more
information.
Thank you,
Dimitris
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1372859/+subscriptions
Follow ups
References