Bug 2555 - tracebacks when sending naughty requests
Summary: tracebacks when sending naughty requests
Status: CLOSED WORKSFORME
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: pre-1.0
Hardware: PC Linux
: P2 Normal
Target Milestone: 4.16.0
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 13:05 CEST by Pierre Ossman
Modified: 2023-09-22 14:18 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2007-10-24 13:05:16 CEST
Les has been torturing the VSM server (issue 5508) with some odd tool and produced a number of tracebacks:

Exception happened during processing of request from ('10.2.0.16', 42983)
Traceback (most recent call last):
  File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 307, in handle_one_request
    self.send_error(501, "Unsupported method (%r)" % self.command)
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 340, in send_error
    self.log_error("code %d, message %s", code, message)
  File "/opt/thinlinc/sbin/vsmserver", line 747, in log_error
    oO0O0OO00Oo . xmlrpc . warning ( '%s %s' % args [ 0 ] % args [ 1 : ] )
TypeError: not enough arguments for format string
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('10.2.0.16', 42984)
Traceback (most recent call last):
  File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 303, in handle_one_request
    if not self.parse_request(): # An error code has been sent, just exit
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 276, in parse_request
    self.send_error(400, "Bad request syntax (%r)" % requestline)
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 340, in send_error
    self.log_error("code %d, message %s", code, message)
  File "/opt/thinlinc/sbin/vsmserver", line 747, in log_error
    oO0O0OO00Oo . xmlrpc . warning ( '%s %s' % args [ 0 ] % args [ 1 : ] )
TypeError: not enough arguments for format string
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('10.2.0.16', 43769)
Traceback (most recent call last):
  File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
    self.handle()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 303, in handle_one_request
    if not self.parse_request(): # An error code has been sent, just exit
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 276, in parse_request
    self.send_error(400, "Bad request syntax (%r)" % requestline)
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 340, in send_error
    self.log_error("code %d, message %s", code, message)
  File "/opt/thinlinc/sbin/vsmserver", line 747, in log_error
    oO0O0OO00Oo . xmlrpc . warning ( '%s %s' % args [ 0 ] % args [ 1 : ] )
TypeError: not enough arguments for format string
----------------------------------------
2007-10-23 14:27:39 DEBUG vsmserver.session: Adding dem to session_update_queue
2007-10-23 14:27:39 DEBUG vsmserver.session: session_update_queue: []
2007-10-23 14:27:39 DEBUG vsmserver.session: Verifying session for dem on tlaedu5.eksjo.se
2007-10-23 14:28:10 DEBUG vsmserver.session: Updating last_updated for dem to 1193142459
2007-10-23 14:28:10 DEBUG vsmserver.session: Writing active sessions to disk
2007-10-23 14:28:10 DEBUG vsmserver.session: Done writing sessions
2007-10-23 14:28:10 INFO vsmserver.session: User dribir requested login
2007-10-23 14:28:10 DEBUG vsmserver.session: Session parameters: {'hwaddr': '00C04F8A9F09', 'screen_size': [1024, 768], 'graphic_session': 1, 'capabilities': {'localdrives': '', 'client_version': '1.5.0', 'client_platform': 'Linux', 'client_lang': 'C'}}
2007-10-23 14:28:10 DEBUG vsmserver.session: Current sessions: ['namana', 'johlin', 'jal', 'wmm', 'christofferolsson93', 'ste', 'oskarbiddle93', 'elevtest', 'stajul', 'nillin', 'skojon', 'dem', 'johanlindeborg92', 'adamthor93', 'thaell', 'torlai', 'davidmucchiano93', 'sveale', 'albertgustafsson93', 'larein']
Comment 2 Pierre Ossman cendio 2023-09-22 14:18:17 CEST
This is before the big rewrite of vsmserver/vsmagent for ThinLinc 2.0.0, so it's not relevant for the current implementation. The code in the backtrace no longer exists.

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