Closed (fixed)
Project:
Drupal core
Version:
5.0
Component:
update system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2006 at 07:27 UTC
Updated:
5 Oct 2007 at 22:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
dries commentedhttp://www.checkupdown.com/status/E411.html
http://nl.wikipedia.org/wiki/HTTP-statuscodes
Comment #2
aries commentedYep, it doesn't work with my Firefox 1.5.0.6, but it works with Konqueror 3.5.3 . Interesting...
Comment #3
webchickComment #4
pfaocleI get this too from 4.7.3 -> todays HEAD (updates 1000 onwards) in Firefox 2.0 Beta 2, but not in IE or Opera. Haven't looked closely at this.
Comment #5
bdragon commentedSame here in Seamonkey 1.0.3/win32.
Ran the session through Fiddler, and it flagged a protocol violation. Seamonkey is neglecting to set Content-Length on the POST request. It is doing two of these invalid requests in quick succession.
Server response (Fiddler wrapped it)
For comparison, Internet Explorer adds a Content-Length: 0 and gets the proper JSON stream.
and the server reply:
So, in summary, this appears to be a mozilla bug, or possibly a bug in the javascript.
Comment #6
bdragon commentedFound it.
It's a bug in progress.js. When doing a post request, you apparently need to specify data, even if it is ''.
Don't know if this is a bug in jquery or just something overlooked... Might want to investigate further...
Comment #7
dries commentedIf anything, this is something we want to document.
Comment #8
bdragon commentedThis is still happening on my site.
Comment #9
dries commentedI'll mark this RTBC but leave it up to Steven to commit. He has the final say on this.
Comment #10
ChrisKennedy commentedI started getting this error and the patch fixed it. Without the patch I was unable to upgrade my test site - so I'd say it's pretty important to get this easy fix in.
Comment #11
pwolanin commentedhttp://drupal.org/node/102567 has been marked a duplicate of this issue, though I'm getting a 406 error from Apache mod_security at the same step. According to host's tech support examination of the logs, the problem is essentially the same:
however, the patch in #6 doesn't seem to fix this problem for me. Attached patch is a slight variation which sets the data as a non-zero length string. This does seems to fix the error, though I'll try to do more testing. I'm really a novice with JS, so maybe there is a better approach?
Comment #12
pwolanin commentedneeds further review and testing
Comment #13
dries commentedAnd let's document this too!
Comment #14
pwolanin commentedOk, i revise my comment above- the patch works for me to prevent the 406 even in its form in #6. Apparently I didn't clear the browser cache at the right point. Anyhow, patch attached with two lines of code comments.
Comment #15
Steven commentedCommitted to HEAD, thanks.
Comment #16
(not verified) commentedComment #17
swmerrill commentedI'm running Firefox 2.0.0.1 and Postgresql 8.1.6. When I try to run update.php, I get the http 406 error noted in the title. This is similar to an earlier bug in progress.js but I checked and the patch for that bug is definitely in progress.js.
Apache gives me the following error:
[Thu Jan 18 15:15:13 2007] [error] [client 209.218.83.146] mod_security: Access denied with code 406. Pattern match "!(^$|^application/x-www-form-urlencoded$|^multipart/form-data)" at HEADER("Content-Type") [severity "EMERGENCY"] [hostname "www.deargrandkids.com"] [uri "/update.php?op=do_update"]
~
I haven't been able to find a work-around.
Comment #18
pwolanin commentedIs your host running mod_security? If so, there may be no easy solution, depending on their settings.
When I was seeing this problem, tried it on two severs on the same host- one gave a 406, one not. turned out that that been incorrectly configured to have slightly different mod_security settings.
Does it work if you disable JS temporarily?
Comment #19
swmerrill commentedYes, disabling Javascript in the Firefox browser fixed the problem.
Comment #20
swmerrill commentedYes, disabling Javascript in the Firefox browser fixed the problem. Many thanks!
Comment #21
bdragon commented