bugGNU Health - Bugs: bug #44189, Ascii code Error when trying to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44189: Ascii code Error when trying to create Institution

Submitter:  Cecilia Santos <ceciliasp>
Submitted:  Thu 05 Feb 2015 01:26:35 PM UTC
   
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  2.8.0
Module:  Health Component:  None

Sat 07 Feb 2015 09:15:09 PM UTC, comment #3: 

Fixed on changeset 1835:c81a9b23b105

Luis Falcon <meanmicio>
Group administrator
Sat 07 Feb 2015 08:57:52 PM UTC, comment #2: 

Thanks Cecilia for reporting and Cedric for the patch !

In fact, this is a unicode issue, when trying to assign via str . The error happens if non-ascii chars (ñ,á... ) are within the company name.

Applying Cedric patch and will report.

Best,

Luis Falcon <meanmicio>
Group administrator
Thu 05 Feb 2015 01:40:12 PM UTC, comment #1: 

It should be fixed by this patch.

(file #33001)

Cédric Krier <cedk>
Thu 05 Feb 2015 01:26:35 PM UTC, original submission:  

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/modules/health/health.py", line 385, in create
    values['code'] = str(uuid4()) + '-' + str(suffix)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 13: ordinal not in range(128)


Running on a VM Lubuntu 14.04
GNU Health 2.8 rc3

Cecilia Santos <ceciliasp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #33001:  patch added by cedk (558B - application/octet-stream - Patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by cedk (Updated the item)
  • -email is unavailable- added by ceciliasp
  • -email is unavailable- added by ceciliasp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-07 meanmicio StatusConfirmed Fixed
        Open/ClosedOpen Closed
        ReleaseNone 2.8.0
    2015-02-07 meanmicio StatusNone Confirmed
        Assigned toNone meanmicio
    2015-02-05 cedk Attached File- Added patch, #33001
    2015-02-05 ceciliasp Carbon-Copy- Added ceciliasp

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code