Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've tried to upgrade two Drupal system from 4.7.3 to HEAD. I got the following error:
An HTTP error 411 occured. update.php?op=do_update .
It's not depend on from which revision I start the update. mod_security is disabled.
Comment | File | Size | Author |
---|---|---|---|
#14 | progress-js-patch4.txt | 734 bytes | pwolanin |
#11 | progress-js-patch2.txt | 544 bytes | pwolanin |
#6 | progress.js.patch.txt | 525 bytes | bdragon |
Comments
Comment #1
Dries CreditAttribution: Dries commentedhttp://www.checkupdown.com/status/E411.html
http://nl.wikipedia.org/wiki/HTTP-statuscodes
Comment #2
aries CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Dries commentedIf anything, this is something we want to document.
Comment #8
bdragon CreditAttribution: bdragon commentedThis is still happening on my site.
Comment #9
Dries CreditAttribution: Dries commentedI'll mark this RTBC but leave it up to Steven to commit. He has the final say on this.
Comment #10
ChrisKennedy CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: pwolanin commentedneeds further review and testing
Comment #13
Dries CreditAttribution: Dries commentedAnd let's document this too!
Comment #14
pwolanin CreditAttribution: 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 CreditAttribution: Steven commentedCommitted to HEAD, thanks.
Comment #16
(not verified) CreditAttribution: commentedComment #17
swmerrill CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: swmerrill commentedYes, disabling Javascript in the Firefox browser fixed the problem.
Comment #20
swmerrill CreditAttribution: swmerrill commentedYes, disabling Javascript in the Firefox browser fixed the problem. Many thanks!
Comment #21
bdragon CreditAttribution: bdragon commented