Bug 2950 - License module crashes on expired license with non-ASCII chars
Summary: License module crashes on expired license with non-ASCII chars
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: License system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Pierre Ossman
URL:
Keywords:
: 3013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-28 13:02 CET by Peter Åstrand
Modified: 2013-11-29 11:20 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2008-10-28 13:02:33 CET
From Issue 6844. It turns out that if a license file is expired, plus contains, say, swedish characters, the license module crashes:

2008-10-27 14:13:01 ERROR vsmserver: Unhandled exception:
exceptions.UnicodeDecodeError 'ascii' codec can't decode byte 0xc3 in
position 994: ordinal not in range(128) Traceback (most recent call
last):
  File "/opt/thinlinc/modules/thinlinc/vsm/async.py", line 110, in iii11
    obj . handle_read_event ( fd )
  File "/opt/thinlinc/modules/thinlinc/vsm/extproc.py", line 310, in
handle_read_event
    self . handle_close ( fd )
  File "/opt/thinlinc/modules/thinlinc/vsm/extproc.py", line 283, in
handle_close
    self . handle_exit ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/extproc.py", line 506, in
handle_exit
    self . callback ( OooOo0ooo , self . stdout_data , self .
stderr_data )
  File "/opt/thinlinc/modules/thinlinc/vsm/licensehandler.py", line 379,
in openssl_done
    self . check_license_files ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/licensehandler.py", line 319,
in check_license_files
    self . warn_admin ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/licensehandler.py", line 229,
in warn_admin
    iiIii )
  File "/opt/thinlinc/modules/thinlinc/vsm/extproc.py", line 527, in
__init__
    self . input = locale_encode ( input )
  File "/opt/thinlinc/modules/thinlinc/ctccommon.py", line 463, in
locale_encode
    return s . encode ( OOooooO0Oo )
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
994: ordinal not in range(128)

2008-10-27 14:13:01 ERROR vsmserver: Killing process with pid 5652

Also verified with tl-show-licenses.
Comment 1 Karl Mikaelsson cendio 2013-11-29 11:20:14 CET
*** Bug 3013 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.