Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#941: a broken HTTP header from IE7 triggers a python error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CherryPy  
View profile  
 More options Jul 2, 3:08 pm
From: CherryPy <t...@cherrypy.org>
Date: Thu, 02 Jul 2009 19:08:14 -0000
Local: Thurs, Jul 2 2009 3:08 pm
Subject: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |       Owner:  fumanchu
     Type:  defect      |      Status:  new    
 Priority:  normal      |   Milestone:          
Component:  wsgiserver  |    Keywords:          
------------------------+-------------------------------------------------- -
 A page refresh in IE7 (version number 7.0.6001) behind an ISP proxy in
 Singapore has a header with a malformed line: "Re, 1.2.3.4#015#012" where
 1.2.3.4 is the client IP. This breaks the multiple assignment in
 HTTPRequest.read_headers():

 k, v = line.split(":", 1)

 since it's trying to assign a list with one item to 2 variables. The
 cryptic error is "ValueError: need more than 1 value to unpack". My
 solution is to enclose the problem code in a 'try' block and issue a
 'continue' on failure.

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile  
 More options Jul 2, 3:58 pm
From: CherryPy <t...@cherrypy.org>
Date: Thu, 02 Jul 2009 19:58:33 -0000
Local: Thurs, Jul 2 2009 3:58 pm
Subject: Re: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |        Owner:  fumanchu
     Type:  defect      |       Status:  new    
 Priority:  normal      |    Milestone:          
Component:  wsgiserver  |   Resolution:          
 Keywords:              |  
------------------------+-------------------------------------------------- -
Changes (by guest):

  * cc:  => stefantalpal...@yahoo.com

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile  
 More options Jul 4, 1:52 pm
From: CherryPy <t...@cherrypy.org>
Date: Sat, 04 Jul 2009 17:52:20 -0000
Local: Sat, Jul 4 2009 1:52 pm
Subject: Re: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |        Owner:  fumanchu
     Type:  defect      |       Status:  new    
 Priority:  normal      |    Milestone:  3.2    
Component:  wsgiserver  |   Resolution:          
 Keywords:              |  
------------------------+-------------------------------------------------- -
Changes (by fumanchu):

  * milestone:  => 3.2

Old description:

> A page refresh in IE7 (version number 7.0.6001) behind an ISP proxy in
> Singapore has a header with a malformed line: "Re, 1.2.3.4#015#012" where
> 1.2.3.4 is the client IP. This breaks the multiple assignment in
> HTTPRequest.read_headers():

> k, v = line.split(":", 1)

> since it's trying to assign a list with one item to 2 variables. The
> cryptic error is "ValueError: need more than 1 value to unpack". My
> solution is to enclose the problem code in a 'try' block and issue a
> 'continue' on failure.

New description:

 A page refresh in IE7 (version number 7.0.6001) behind an ISP proxy in
 Singapore has a header with a malformed line: "`Re, 1.2.3.4#015#012`"
 where 1.2.3.4 is the client IP. This breaks the multiple assignment in
 HTTPRequest.read_headers():

 {{{
 #!python
 k, v = line.split(":", 1)
 }}}

 since it's trying to assign a list with one item to 2 variables. The
 cryptic error is "ValueError: need more than 1 value to unpack". My
 solution is to enclose the problem code in a 'try' block and issue a
 'continue' on failure.

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile  
 More options Aug 5, 12:20 am
From: CherryPy <t...@cherrypy.org>
Date: Wed, 05 Aug 2009 04:20:30 -0000
Local: Wed, Aug 5 2009 12:20 am
Subject: Re: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |        Owner:  fumanchu
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:  3.2    
Component:  wsgiserver  |   Resolution:  wontfix
 Keywords:              |  
------------------------+-------------------------------------------------- -
Changes (by fumanchu):

  * resolution:  => wontfix
  * status:  new => closed

Comment:

 This is too big a security hole to allow IMO. Cf
 http://lists.w3.org/Archives/Public/ietf-http-wg/2009JulSep/0281.html
 etcetera.

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile  
 More options Aug 5, 12:30 am
From: CherryPy <t...@cherrypy.org>
Date: Wed, 05 Aug 2009 04:30:42 -0000
Local: Wed, Aug 5 2009 12:30 am
Subject: Re: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |        Owner:  fumanchu
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:  3.2    
Component:  wsgiserver  |   Resolution:  wontfix
 Keywords:              |  
------------------------+-------------------------------------------------- -
Comment (by stefantalpal...@yahoo.com):

 The provided link is not relevant. This is a broken header sent by a
 browser. It cannot be blamed for a hypothetical cache poisoning in squid.

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile  
 More options Aug 5, 12:54 am
From: CherryPy <t...@cherrypy.org>
Date: Wed, 05 Aug 2009 04:54:39 -0000
Local: Wed, Aug 5 2009 12:54 am
Subject: Re: [CherryPy] #941: a broken HTTP header from IE7 triggers a python error

#941: a broken HTTP header from IE7 triggers a python error
------------------------+-------------------------------------------------- -
 Reporter:  guest       |        Owner:  fumanchu
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:  3.2    
Component:  wsgiserver  |   Resolution:  wontfix
 Keywords:              |  
------------------------+-------------------------------------------------- -
Comment (by fumanchu):

 However, we can at least emit a less cryptic error message. [2489] for
 trunk and [2490] for python3.

--
Ticket URL: <http://www.cherrypy.org/ticket/941>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google