new forum item: "HTTP 302 (found) when editing page"
authorhttps://www.google.com/accounts/o8/id?id=AItOawkARRfU19FmAvBQJ0zR_vlTi_KEiL9meFE <Riccardo@web>
Thu, 11 Aug 2011 09:58:36 +0000 (05:58 -0400)
committeradmin <admin@branchable.com>
Thu, 11 Aug 2011 09:58:36 +0000 (05:58 -0400)
doc/forum/error_302___40__Found__41___when_editing_page.mdwn [new file with mode: 0644]

diff --git a/doc/forum/error_302___40__Found__41___when_editing_page.mdwn b/doc/forum/error_302___40__Found__41___when_editing_page.mdwn
new file mode 100644 (file)
index 0000000..28093f9
--- /dev/null
@@ -0,0 +1,29 @@
+I have an [IkiWiki site](http://ocikbapps.uzh.ch/gc3wiki), which works
+fine, except for one page which I cannot edit with the CGI.  Only this
+single page is failing, editing every other works as expected.
+
+When clicking every button (well, except "Cancel") on the edit form, I
+get a "302 Found" page in the browser; the Apache logs show:
+
+    [client XXX] malformed header from script. Bad header=according%20to%20the%20availab: ikiwiki.cgi
+
+Capturing the output from `ikiwiki.cgi`, I see that just these two
+lines are sent:
+
+    Status: 302 Found
+    Location: https://ocikbapps.uzh.ch/gc3wiki/ikiwiki.auth.cgi?_submitted=1;do=edit;..;_submit=Preview;attachment=
+
+The total size in bytes of the reply is 16189; I thought this might be
+an issue with Apache imposing some limit on the header size; indeed,
+`tcpflow` shows that the "302 Found" message is encapsulated into an
+HTTP 500 "internal server error" response.
+
+So I added this to Apache's config (std Debian 6.0):
+
+    # cat /etc/apache2/conf.d/limits.conf
+    LimitRequestFieldSize 65534
+    LimitRequestLine 65534
+
+But I'm still getting the same error.
+
+Any suggestions?