Bug 5029 - Internal error and traceback if User-Agent header not exists in http request.
Summary: Internal error and traceback if User-Agent header not exists in http request.
Status: CLOSED DUPLICATE of bug 4941
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.2.0
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 07:32 CET by Henrik Andersson
Modified: 2014-04-08 10:17 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2014-03-20 07:32:56 CET
2014-03-20 07:30:37 INFO tlwebaccess[31996]: Connection from ::ffff:10.47.4.21, port 55059
2014-03-20 07:30:38 ERROR tlwebaccess[31996]: gnutls_record_recv: The TLS connection was non-properly terminated.
2014-03-20 07:30:38 ERROR tlwebaccess[31997]: ----------------------------------------
2014-03-20 07:30:38 ERROR tlwebaccess[31997]: Traceback (most recent call last):
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:   File "/opt/thinlinc/sbin/tlwebaccess", line 323, in post_or_get
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:     headers, page = getattr(module, action)(page_name, query, headers)
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:   File "/opt/thinlinc/modules/thinlinc/tlwebaccess/main.py", line 147, in do_POST
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:     self . _POST_METHODS . get ( page_name , self . error_404 ) ( query ) )
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:   File "/opt/thinlinc/modules/thinlinc/tlwebaccess/main.py", line 111, in render_page
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:     [ "AppleWebKit" , "Mobile" ] , 'User-Agent' ) ,
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:   File "/opt/thinlinc/modules/thinlinc/tlwebaccess/main.py", line 158, in header_contains_all
2014-03-20 07:30:38 ERROR tlwebaccess[31997]:     if OooO0 in IIi :
2014-03-20 07:30:38 ERROR tlwebaccess[31997]: TypeError: argument of type 'NoneType' is not iterable
2014-03-20 07:30:38 ERROR tlwebaccess[31997]: ----------------------------------------
2014-03-20 07:30:38 ERROR tlwebaccess[31997]: code 500, message Internal error on page '/main/'
2014-03-20 07:30:38 INFO tlwebaccess[31997]: 'POST /main/ HTTP/1.1' 500 -

Reproduced by:

cat post.http | nc --ssl <server>

post.http:
------------------
POST /main/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 48

username=cendio&pamresponse=linux&submitlogin=1
------------------
Comment 1 Henrik Andersson cendio 2014-03-20 07:34:52 CET

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

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