Modify

Opened 3 years ago

Last modified 22 months ago

#10093 new defect

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

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

Description (last modified by rjollos)

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 3 years ago by anonymous

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

comment:2 Changed 3 years ago by rjollos

  • Description modified (diff)
  • Summary changed from "Many content-Leght headers" error received when posting a comment to "Many content-Length headers" error received when posting a comment

comment:3 Changed 22 months ago by FilipeCorreia

  • 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.

Add Comment

Modify Ticket

Action
as new The owner will remain osimons.
Author


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

 
Note: See TracTickets for help on using tickets.