openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16852
[Bug 1068687] Re: Unable to upload company logo : OpenERP v6.0.4-r1
Hello Aurélien,
We have already released a latest version on OpenERP 6.1 and also we
have plan to release the V7 soon.
So I would like to suggest please use the latest version, and If
possible then please try the same with trunk. As you are using a
different OS( gentoo x86_64 ). If we are going to set up this
environment at our end this will be time being and also If we get the
same error then also we can't fix this for stable6.
So would you please download the latest version then check with you OS and let we know if you still face the problem or not.
(We have already improve our web client architecture on 6.1, So there is minimum possibility that you will face this type of error .)
For the meanwhile I am closing this issue, If you face the same problem
on latest version, You can feel free to reopen this.
Thanks for understanding!
** Summary changed:
- Unable to upload company logo : OpenERP v6.0.4-r1
+ [V6]Unable to upload company logo : OpenERP v6.0.4-r1
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1068687
Title:
[V6]Unable to upload company logo : OpenERP v6.0.4-r1
Status in OpenERP Addons (modules):
Invalid
Bug description:
Hey,
I just installed OpenERP v6.0.4-r1 on my gentoo x86_64. Everything is running smoothly, but I am unable to upload my company logo, btw it was not the case in the last version I used (v5).
The client is OpenERP web client v6.0.4.
Python2.6
Database informations :
PostgreSQL 9.1.5
Psycopg 2.4.5
Here is the error on the server side :
[2012-10-19 16:43:53,567][OpenERP] DEBUG:web-services:netrpc: communication-level exception
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/openerp-server/service/netrpc_server.py", line 71, in run
ts.mysend(result)
File "/usr/lib64/python2.6/site-packages/openerp-server/tiny_socket.py", line 63, in mysend
msg = cPickle.dumps([msg,traceback])
File "/usr/lib64/python2.6/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle buffer objects
[2012-10-19 16:43:55,804][OpenERP] DEBUG:web-services:netrpc: communication-level exception
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/openerp-server/service/netrpc_server.py", line 71, in run
ts.mysend(result)
File "/usr/lib64/python2.6/site-packages/openerp-server/tiny_socket.py", line 63, in mysend
msg = cPickle.dumps([msg,traceback])
File "/usr/lib64/python2.6/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle buffer objects
[2012-10-19 16:44:11,290][OpenERP] DEBUG:web-services:netrpc: communication-level exception
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/openerp-server/service/netrpc_server.py", line 71, in run
ts.mysend(result)
File "/usr/lib64/python2.6/site-packages/openerp-server/tiny_socket.py", line 63, in mysend
msg = cPickle.dumps([msg,traceback])
File "/usr/lib64/python2.6/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle buffer objects
On the client side :
[19/Oct/2012:16:43:55] HTTP
Request Headers:
REFERER: http://openerp:8080/
HOST: openerp:8080
CONNECTION: keep-alive
Remote-Addr: 192.168.1.19
ACCEPT: */*
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.17 Safari/536.11
COOKIE: PPA_ID=fs199uetd2kjt7bop2c21sl4k2; webfx-tree-cookie-persistence=wfxt-4+wfxt-6; terp_db=OpenERP; terp_user=admin; session_id=5b16108ca621bfb0356529ed4e04ddb9331bd31e
ACCEPT-LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
ACCEPT-ENCODING: gzip,deflate,sdch
192.168.1.19 - - [19/Oct/2012:16:43:55] "GET /openerp/form/binary_image_get_image?field=logo&model=res.company&id=1&nocache=4187251013 HTTP/1.1" 500 8614 "http://openerp:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.17 Safari/536.11"
[19/Oct/2012:16:44:11] HTTP
Request Headers:
REFERER: http://openerp:8080/
ORIGIN: http://openerp:8080
Remote-Addr: 192.168.1.19
Content-Length: 144775
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.17 Safari/536.11
CONNECTION: keep-alive
COOKIE: PPA_ID=fs199uetd2kjt7bop2c21sl4k2; webfx-tree-cookie-persistence=wfxt-4+wfxt-6; terp_db=OpenERP; terp_user=admin; session_id=5b16108ca621bfb0356529ed4e04ddb9331bd31e
HOST: openerp:8080
CACHE-CONTROL: max-age=0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQAJ2BHob9ntnrQBM
ACCEPT-ENCODING: gzip,deflate,sdch
In the web browser client side it just said that an error just
happened.
From what I've seen around the web it seems to be a problem about data
encapsulation in a session, but I didn't find any workaround.
Regards,
Edit :
I also tried to put my logo directyly into the postgres database using lo_import function.
But unfortunately it generates an error when generating the report :
(<type 'exceptions.ValueError'>, ValueError('All strings must be XML
compatible: Unicode or ASCII, no NULL bytes or control characters\n
handle_pageBegin args=()',), <traceback object at 0x7f1372ce57a0>)
Some details about this last error on the server side :
[2012-10-20 10:53:26,528][OpenERP] ERROR:web-services:[01]: Exception: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
[2012-10-20 10:53:26,538][OpenERP] ERROR:web-services:[02]: handle_pageBegin args=()
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[03]: Traceback (most recent call last):
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[04]: File "/usr/lib64/python2.6/site-packages/openerp-server/service/web_services.py", line 724, in go
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[05]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[06]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/report_sxw.py", line 418, in create
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[07]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2012-10-20 10:53:26,539][OpenERP] ERROR:web-services:[08]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/report_sxw.py", line 481, in create_source_pdf
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[09]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[10]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/report_sxw.py", line 503, in create_single_pdf
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[11]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[12]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/interface.py", line 193, in create_pdf
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[13]: obj.render()
[2012-10-20 10:53:26,540][OpenERP] ERROR:web-services:[14]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/render.py", line 63, in render
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[15]: result = self._render()
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[16]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml.py", line 41, in _render
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[17]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[18]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[19]: r.render(fp)
[2012-10-20 10:53:26,541][OpenERP] ERROR:web-services:[20]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[21]: pt_obj.render(el)
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[22]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 951, in render
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[23]: self.doc_tmpl.build(fis)
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[24]: File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 877, in build
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[25]: self.clean_hanging()
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[26]: File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 510, in clean_hanging
[2012-10-20 10:53:26,542][OpenERP] ERROR:web-services:[27]: self.handle_flowable(self._hanging)
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[28]: File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 757, in handle_flowable
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[29]: f.apply(self)
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[30]: File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 140, in apply
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[31]: getattr(doc,arn)(*args)
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[32]: File "/usr/lib64/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 535, in handle_pageBegin
[2012-10-20 10:53:26,543][OpenERP] ERROR:web-services:[33]: self.pageTemplate.onPage(self.canv,self)
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[34]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 579, in render
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[35]: cnv.render(self.node)
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[36]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 564, in render
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[37]: tags[n.tag](n)
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[38]: File "/usr/lib64/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 454, in _image
[2012-10-20 10:53:26,544][OpenERP] ERROR:web-services:[39]: node.text = newtext or ''
[2012-10-20 10:53:26,545][OpenERP] ERROR:web-services:[40]: File "lxml.etree.pyx", line 904, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:37118)
[2012-10-20 10:53:26,545][OpenERP] ERROR:web-services:[41]: File "apihelpers.pxi", line 721, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:16863)
[2012-10-20 10:53:26,545][OpenERP] ERROR:web-services:[42]: File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22068)
[2012-10-20 10:53:26,545][OpenERP] ERROR:web-services:[43]: ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
[2012-10-20 10:53:26,545][OpenERP] ERROR:web-services:[44]: handle_pageBegin args=()
[2012-10-20 10:53:27,463][OpenERP] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/openerp-server/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/usr/lib64/python2.6/site-packages/openerp-server/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
Web server details :
[20/Oct/2012:10:53:27] HTTP
Request Headers:
REFERER: http://openerp:8080/openerp/menu?active=73
ORIGIN: http://openerp:8080
Remote-Addr: 192.168.1.19
Content-Length: 13
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.17 Safari/536.11
CONNECTION: keep-alive
COOKIE: terp_db=OpenERP; terp_user=admin; PPA_ID=pliqd1p42pp72v6lnrsoq9c7n4; webfx-tree-cookie-persistence=wfxt-4+wfxt-6; session_id=129d0c896f7c573cfa119d53586effeb025653eb
HOST: openerp:8080
CACHE-CONTROL: max-age=0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Content-Type: application/x-www-form-urlencoded
ACCEPT-ENCODING: gzip,deflate,sdch
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1068687/+subscriptions
References