Modify

Opened 5 years ago

Last modified 4 years ago

#10093 new defect

"Many content-Length headers" error received when posting a comment

Reported by: anonymous Owned by: Odd Simon Simonsen
Priority: normal Component: AddCommentMacro
Severity: normal Keywords: patch
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

When submitting a comment Google Chrome show

Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): many  "Content-Length" headers recerived. 

Chrome version: 19.0.1084.56 m

A very similar issue happens with Firefox 12 (a Corrupt content message is displayed)

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

Trac core seems to have had the same problem: t:#10412

comment:2 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)
Summary: "Many content-Leght headers" error received when posting a comment"Many content-Length headers" error received when posting a comment

comment:3 Changed 4 years ago by Filipe Correia

Keywords: patch added

I've made a (somewhat ugly) patch to fix this issue, that makes the plugin compatible with Trac 1.0. See: https://github.com/filipefigcorreia/addcommentmacro/commit/b416f2875267bb57b988fad69d8926dfeb0d358c

For future reference, the complete error message as reported by Google Chrome was:

Duplicate headers received from server

The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.

Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): Multiple distinct Content-Length headers received. This is disallowed to protect against HTTP response splitting attacks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Odd Simon Simonsen.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.