Merge lp:~openerp-dev/openobject-addons/trunk-bug-921442-kjo into lp:openobject-addons
Proposed by
Kuldeep Joshi(OpenERP)
Status: | Merged |
---|---|
Approved by: | Raphael Collet (OpenERP) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6679 |
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-bug-921442-kjo |
Merge into: | lp:openobject-addons |
Diff against target: |
46 lines (+6/-4) 2 files modified
base_action_rule/base_action_rule.py (+3/-2) crm/crm_action_rule.py (+3/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-921442-kjo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+92248@code.launchpad.net |
Description of the change
Encoding trouble in mail_message parsing and base_action_rule processin
To post a comment you must log in.
First part of the bug which is "Parsing the rules (base_action_rule) breaks if the regexp or the name of the resource (model) has some non-string char". And Technically it is valid bug, we have reproduced the bug and I am adding step here for the same :
Test case :
- Install Module crm. Customization/ Automated Actions/Automated Actions for the model crm.lead. jam/rdtools/ addons/ trunk-calendar- phase2/ base_action_ rule/base_ action_ rule.py" , line 372, in do_check str(reg_ name)) deError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)
- Create 'Automated Action' under Settings/
- Now Supply non-character (e.g. "ààààààà") string under following two field :
- First field Under Conditions on Model Fields Section, 'Regex on Resource Name '
- Second field Under Section 'Condition on Communication History' Regular Expression on Case History
- Now, When Automated action with non-character string will be trigger we will have traceback on server saying :
File "/home/
ptrn = re.compile(
UnicodeEnco
2012-02-15 05:55:44,278 4176 ERROR ? openerp.netsvc: ascii
ààààààà
0
7
ordinal not in range(128)
(You can see the Video on Comment#13 on bug post for the same)
Thank You.