Bug Tracker

Opened 14 years ago

Closed 13 years ago

#4648 closed bug (invalid)

JSON: Mozilla and Apache problem (response mixed with HTTP headers)

Reported by: eMPee584 Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.2.6
Keywords: json mozilla firefox apache parse error Cc:
Blocked by: Blocking:

Description

It seems there is a problem within Mozilla that in combination with the Apache web server can cause the response content to get mixed up with the headers. This is especially true for repeated requests: the first one might be fine, successive ones will show this bug. AFAIK the mozilla bugs are aware of some similar sort of behaviour but no fix has been committed and i can reproduce with any firefox in combination with our Apache/2.2.3 (Red Hat, built: Nov 12 2008 07:09:27). The attached fix finds the enclosing quote pair and removes anything outside it, which fixes the parse errors. Needs to be tested and forward ported..

Attachments (1)

jquery-json-mozilla-apache-fix.patch (1.4 KB) - added by eMPee584 14 years ago.
fix for situation with mozilla firefox / apache where headers get mixed with response

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by eMPee584

fix for situation with mozilla firefox / apache where headers get mixed with response

comment:1 Changed 14 years ago by eMPee584

does anyone care about this?

comment:2 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

Please reopen with a test case that demonstrates the problem.

Note: See TracTickets for help on using tickets.