<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Mensaje</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=482250311-05122008>Hi!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=482250311-05122008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=482250311-05122008> This is an
informative post, because never before I write about this error (I had it and I
solved it), but can be useful for another users:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=482250311-05122008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=482250311-05122008> I have a fresh
Koha 3 [3.00.00.107] install in a GNU/Linux Fedora 9
server, running over Apache 2 (daemon httpd), MySQL 5.0.51a, Perl
5.010.000.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=482250311-05122008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=482250311-05122008> I go to the
Koha-Intranet, login and try to 'Add MARC Record': koha give me an 'Error 500'.
I saw the koha log (/var/log/koha/koha-error_log) and the last
line contains</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial color=#808080 size=2><SPAN class=482250311-05122008>...
ModSecurity: Output filter: Response body too large (over limit of 524288,
total not specified) ...</SPAN></FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial color=#808080
size=2><SPAN class=482250311-05122008> <FONT color=#000000> I find by
google the solution in: [es - spanish] <A
href="http://hostingaldescubierto.com/wordpress/2008/04/15/modsecurity-output-filter-response-body-too-large/">http://hostingaldescubierto.com/wordpress/2008/04/15/modsecurity-output-filter-response-body-too-large/</A>. <BR>
mod_security is an Apache module for enhanced security. This module let
block the http-response more large than xxx bytes. And this is the
problem. In a Fedora 9 default configuration, these are the
settings:</FONT></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008>[ in
/etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf
]</SPAN></FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008>SecRequestBodyAccess On<BR>SecResponseBodyAccess
On<BR>SecResponseBodyMimeType (null) text/html text/plain
text/xml<BR>SecResponseBodyLimit 524288</SPAN></FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008> The 'Add MARC record' page
(http://intranet.koha/cgi-bin/koha/cataloguing/addbiblio.pl) have a size
over 937,71 KB (960.211 bytes) [firefox say] and the limit setted by
mod_security is 524.288 bytes. </SPAN></FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008> Only need change this value for another larger,
or set to 'Off' the option 'SecResponseBodyAccess'</SPAN></FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008></SPAN></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2><SPAN
class=482250311-05122008></SPAN></FONT> </DIV>
<P class=MsoNormal align=left><SPAN
style="FONT-SIZE: 9pt; COLOR: #aabd26; FONT-FAMILY: 'Century Gothic'">Iago
Lorenzo Salgueiro<BR>TIC<BR><A
href="mailto:ilorenzo@cetmar.org">ilorenzo@cetmar.org</A></SPAN></P>
<DIV> </DIV></BODY></HTML>