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

Submitted by:  Cecilia Santos <ceciliasp>
Submitted on:  Thu 05 Feb 2015 01:26:35 PM UTC  
 
Category: FunctionalitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Luis Falcon <meanmicio>
Open/Closed: ClosedRelease: 2.8.0
Module: Health

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

Fixed on changeset 1835:c81a9b23b105

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

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
  • -unavailable- added by meanmicio (Posted a comment)
  • -unavailable- added by cedk (Updated the item)
  • -unavailable- added by ceciliasp
  • -unavailable- added by ceciliasp (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 07 Feb 2015 09:15:09 PM UTCmeanmicioStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      ReleaseNone=>2.8.0
    Sat 07 Feb 2015 08:57:52 PM UTCmeanmicioStatusNone=>Confirmed
      Assigned toNone=>meanmicio
    Thu 05 Feb 2015 01:40:12 PM UTCcedkAttached File-=>Added patch, #33001
    Thu 05 Feb 2015 01:26:36 PM UTCceciliaspCarbon-Copy-=>Added ceciliasp

    Back to the top


    Powered by Savane 3.1-cleanup1