cannot share a meeting :need string or buffer, bool found

Bug #902106 reported by Aline (OpenERP)
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 1

Bug Description

to test, share a view. Install share

 Example, go to opportunity list, click share, enter an email address and share :

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 816, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 808, in call_common
    return getattr(req.session.model(model), method)(*args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 429, in proxy
    *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 306, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 276, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 257, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/source/addons/trunk/share/wizard/share_wizard.py", line 669, in go_step_2
    self.send_emails(cr, uid, wizard_data, context=context)
  File "/home/aline/source/addons/trunk/share/wizard/share_wizard.py", line 715, in send_emails
    body += user.signature
TypeError: coercing to Unicode: need string or buffer, bool found

Related branches

affects: openerp-web → openobject-addons
Changed in openobject-addons:
importance: Undecided → High
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have faced the another traceback after sharing, which is following.

Traceback (most recent call last):
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amp/workspace/trunk6/addons/share/wizard/share_wizard.py", line 661, in go_step_2
    restrict=True, context=context)
  File "/home/amp/workspace/trunk6/addons/share/wizard/share_wizard.py", line 532, in _create_or_combine_sharing_rule
    new_clause = expression.normalize(eval(domain, eval_ctx))
  File "<string>", line 1
     <web.common.nonliterals.CompoundDomain object at 0x9eff2ac>
     ^
 SyntaxError: invalid syntax

So I requesting to the related team first fix this problem then again check it, the bug's original description.
I am confirming the above traceback also because two bug reporter have post it, please look in to lp:902898.

Thank you!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have also faced the "TypeError: coercing to Unicode: need string or buffer, bool found" this error when I have sharing the opportunity from list view.

If I have tried this with the form view I have faced the another traceback which is described in comment#1.

Thanks for understanding!

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello, Thanks For Reporting.
It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902106-kjo
revision-id: <email address hidden>
revno: 5955
It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → In Progress
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

There were 2 issues here:

1. Failure when user has no signature (main description of this bug and of duplicate bug 902898.
This is fixed in trunk addons as of revision 5977 revid: <email address hidden>

2. Failure to share on a single form view, due to a domain evaluation issue in the web addon (comment #1)
This is fixed in trunk addons as of revision 5986 revid: <email address hidden>

Changed in openobject-addons:
milestone: none → 6.1
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.