HTTPResponse not using accumulated headers correctly

Bug #599378 reported by Nathan Van Gheem
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Critical
Tres Seaver

Bug Description

In testing Zope 2.13.0a1, I noticed an issue when attempting to upgrade a plone 3.3.5 site.

In the file, ZServer/HTTPResponse.py there is the line

>>> headers = headers.items()
>>> for line in self.accumulated_headers:
>>> if line[0] == '\t':
>>> headers[-1][1] += '\n' + line
>>> continue
>>> headers.append(line.split(': ', 1))

The problem is that accumulated_headers is a tuple of name, values for the headers. So this sort of thing should actually be,

>>> headers = headers.items()
>>> headers.extend(self.accumulated_headers)

Before testing the upgrade, the site worked fine. It must be that the accumulated_headers is not used often and the bug just never surfaced. Perhaps I could be missing something though.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

Tres, was this part of your cleanup?

Changed in zope2:
importance: Undecided → Critical
milestone: none → 2.13.0a2
status: New → Confirmed
assignee: nobody → Tres Seaver (tseaver)
Changed in zope2:
milestone: 2.13.0a2 → 2.13.0a3
Revision history for this message
Nathan Van Gheem (vangheem) wrote :

fixed in r115436

Changed in zope2:
status: Confirmed → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.