openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27477
[Bug 1102991] Re: [security] Survey module uses own subdirectory for tmp storage
Fixed in revision http://bazaar.launchpad.net/~openerp/openobject-
addons/7.0/revision/9918
The fact that it was using a temporary file was indeed completely
useless and crappy.
I left the create_report method even if it is not used, for backward
compatibility. It should be removed in trunk.
** Changed in: openobject-addons
Status: Confirmed => Fix Released
--
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/1102991
Title:
[security] Survey module uses own subdirectory for tmp storage
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Version 7.0-20130122-001415, with Survey module:
To reproduce:
- go to Tools > Surveys > Surveys, and open the "Community Survey"
- click on the More button > Send Invitations
- at the "Send Invitations" dialog, select a partner (any) a click "Send":
Server Traceback (most recent call last):
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/survey/wizard/survey_send_invitation.py", line 131, in action_send
file = open(addons.get_module_resource('survey', 'report') + id.title +".pdf")
IOError: [Errno 2] No such file or directory: u'/home/erp_user/openerp/build-oe/v7/server/openerp/addons/survey/reportCommunity Survey.pdf'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1102991/+subscriptions
References