Bug 3013 - vsmserver traceback with license file containing non-ASCII chars, when warning
Summary: vsmserver traceback with license file containing non-ASCII chars, when warning
Status: CLOSED DUPLICATE of bug 2950
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.2.0
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 16:58 CET by Peter Åstrand
Modified: 2013-11-29 11:20 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2009-02-09 16:58:24 CET
From Issue7298. It seems like vsmserver gives a traceback when it is trying to send a "warn" email, and the license files contains non-ASCII chars:

2009-01-19 16:40:16 INFO vsmserver.license: Updating license data from disk to memory
2009-01-19 16:40:17 INFO vsmserver.license: License summary: 80 concurrent users. Hard limit of 88 concurrent users.
2009-01-19 16:40:17 ERROR vsmserver: Unhandled exception: <type 'exceptions.UnicodeDecodeError'> 'ascii' codec can't decode byte 0xc3 in position 819: 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 819: ordinal not in range(128)
Comment 1 Karl Mikaelsson cendio 2013-11-29 11:20:14 CET
Same traceback as bug 2950.

*** This bug has been marked as a duplicate of bug 2950 ***

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