Firebug console shows incorrect response

Bug #221899 reported by Phil-Taylor.com
4
Affects Status Importance Assigned to Milestone
firebug (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firebug

Using Latest Firebug installed through synaptic with Firefox 3 - and a new profile.

When you make an ajax request, using POST the request is captured correctly in the firebug console, but the response appears to be the response with no params to the request URL.

Eg.
Using Google Calendar

POST http://www.google.com/calendar/event 268ms

Params:
Request Headers
Host www.google.com
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Referer http://www.google.com/calendar/render
Content-Length 335
[Cookies removed for my security]

Post (Which is correct):
eid=ODA5ZjcwbHZidm1mYmJqNnUzOXU0a2o1bmsgcHJhemdvZDJAZ29vZ2xlbWFpbC5jb20&src=cHJhemdvZDJAZ29vZ2xlbWFpbC5jb20
&sf=true&hl=en_GB&output=xml&lef=a2ltbWlla2llQGdtYWlsLmNvbQ&lef=cHJhemdvZDJAZ29vZ2xlbWFpbC5jb20&lef=dWtfX2VuX2diQGhvbGlkYXkuY2FsZW5kYXIuZ29vZ2xlLmNvbQ
&droi=20080219T000000%2F20080805T000000&secid=8fdb4ba0cedfda9c35e0c7a5233d893c

Response (Which is not actually what the browser received):
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>411 Length Required</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>
<script><!--
var rc=411;
//-->
</script>
</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap>
<b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font
 face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times
 color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font>&nbsp;&nbsp;</b>
<td>&nbsp;</td></tr>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</td></tr></table>
<blockquote>
<H1>Length Required</H1>
POST requests require a <code>Content-length</code> header.
<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4><
/td></tr></table>
</body></html>

This is a FIREBUG issue, as the actual web page loads fine and you can use Google Reader (and other ajax apps), its just that firebug reports the response incorrectly!

I have also tried firebug from SVN branch http://fbug.googlecode.com/svn/branches/firebug1.2 rev 585 - same problem

Revision history for this message
Phil-Taylor.com (phil-phil-taylor) wrote :

Description: Ubuntu 8.04
Release: 8.04

 apt-cache policy firefox firebug
firefox:
  Installed: 3.0~b5+nobinonly-0ubuntu3
  Candidate: 3.0~b5+nobinonly-0ubuntu3
  Version table:
 *** 3.0~b5+nobinonly-0ubuntu3 0
        500 http://je.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
firebug:
  Installed: 1.2~b21+svn573-0ubuntu1
  Candidate: 1.2~b21+svn573-0ubuntu1
  Version table:
 *** 1.2~b21+svn573-0ubuntu1 0
        500 http://je.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Phil-Taylor.com (phil-phil-taylor) wrote :

Confirmed Fixed in firebug branch 1.2 svn

Thanks!

Changed in firebug:
status: New → Fix Committed
Revision history for this message
Rory McCann (rorymcc) wrote :

Firebug 1.2~b21+svn573-0ubuntu1 does work, but the console just doesn't work. If you type things, nothing comes up.

Revision history for this message
Branko Ivanović (branko-ivanovic) wrote :

Still doesn't work. Looks like Firebug is caching response and after first post request in console (which is correct), Firebug displays that cached response for all other requests of the same type .

Revision history for this message
Jyrki Pulliainen (jyrki-pulliainen) wrote :

I'm using svn revision 682 and the Length Required -problem seems to be gone. Maybe the Ubuntu package should be updated to a newer version?

Revision history for this message
John Vivirito (gnomefreak) wrote :

Not sure what version is still in Hardy but latest package should fix it. As for backporting this not sure if it is going to be, at least until Karmic+1 if you want it backported once i get done with it please file a back port bug on it. closing this bug since its old and you would need to file a backport bug for latest version to be pushed to HardyIintreped/Jaunty

Changed in firebug (Ubuntu):
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers