Package: ikiwiki Version: 3.20100815.7 When clicking the "Submit" or "Preview" button on the IkiWiki online edit form, I get an HTTP 500 response; the Apache logs on the server 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= (This HTTP 302 content is then sent as body of the HTTP 500 reponse.) The total size in bytes of the reply sent by `ikiwiki.cgi` is 16189; I thought this might be an issue with Apache imposing some limit on the header size; indeed, as of Apache 2.2.16-6 (squeeze), when dealing with the HTTP responses generated by CGI scripts, the code from `server/util_script.c` applies: (function `ap_scan_script_header_err_core`, lines 403--433) char x[MAX_STRING_LEN]; char *w, *l; [...] if (buffer) { *buffer = '\0'; } w = buffer ? buffer : x; [...] while (1) { int rv = (*getsfunc) (w, MAX_STRING_LEN - 1, getsfunc_data); where `MAX_STRING_LEN` is defined in `httpd.h` to be equal to `HUGE_STRING_LEN`, that is, 8192. I am unsure whether this issue should be attributed to IkiWiki or Apache. The same issue (with a CGI-side fix) is discussed here: https://bugzilla.mozilla.org/show_bug.cgi?id=513989 I'm using Debian squeeze, with the latest updates. $ dpkg -l {ikiwiki,apache\*} | grep ^i ii apache2 2.2.16-6+squeeze1 Apache HTTP Server metapackage ii apache2-doc 2.2.16-6+squeeze1 Apache HTTP Server documentation ii apache2-mpm-prefork 2.2.16-6+squeeze1 Apache HTTP Server - traditional non-threaded model ii apache2-utils 2.2.16-6+squeeze1 utility programs for webservers ii apache2.2-bin 2.2.16-6+squeeze1 Apache HTTP Server common binary files ii apache2.2-common 2.2.16-6+squeeze1 Apache HTTP Server common files ii ikiwiki 3.20100815.7 a wiki compiler Thanks! Riccardo -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org