openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22083
[Bug 1099352] Re: [trunk/7.0]Unable to upload PDF attachment to project
OS: Debian 6.0.6
Poppler was not installed because the debian package from:
"http://nightly.openerp.com/7.0/nightly/deb ./" did not have such a
dependency.
To manualy verify the latest source I downloaded the last nightly from:
http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
Extracted the source code and looked in
"/openerp-7.0-20130122-001415/openerp/addons/document/content_index.py"
On line 188 it reads " res = None", res is the result variable being
returned from the method.
This method should always return a tuple (mime, something) which is why
it fails on line 132 in
"/openerp-7.0-20130122-001415/openerp/addons/document/document.py".
Line 188 in content_index.py should probably read "res = (mime, None)"
or "res = (None, None)". The later is what I patched on my machine to
get it to stop breaking. If it is the right way to do it in this code
base - I do not know.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1099352
Title:
[trunk/7.0]Unable to upload PDF attachment to project
Status in OpenERP Server:
Incomplete
Bug description:
When uploading an attachment the webui keeps on loading and loading.
This is due to an error when executing upload_attachment in
'web/controllers/main.py'. This in turn is due to an uncaught
exception in the method 'document_file._index' in
'addons/document/document.py'.
When 'cntIndex.doIndex' is executed it will return None when it fails
to create an index. However the line reads: "mime, icont =
cntIndex.doIndex(data, datas_fname, file_type or None, None)". mine,
icont = None will result in the uncaught exception.
This issue exists in two places in document.py.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1099352/+subscriptions
References