Skip to main content
Version: 3.14.x.x LTS

DumpFilter

The task of the DumpFilter is to dump the request and response in a file. The DumpFilter (as well as the CacheFilter) creates directories whose permissions are set to 0772 so that anyone may dump into the directory, but only users of the same group have read access. Dumping of all requests without any limitation will lead to problems in production environments.

DumpFilter should therefore only be used for trouble shooting and integration tasks!

Classname
ch::nevis::isiweb4::filter::debug::DumpFilter
Library
libDebugFilters.so.1

Configuration

NameType, Usage Constraints, DefaultsDescription
DumpDirectorystring requiredDefines the directory where all requests are to be dumped to files.
MaxSessionstring required default: 50Limits number of dumped files to 'MaxSession+1' x 'MaxRequest'.
MaxRequeststring required default: 50Limits number of dumped files to 'MaxSession+1' x 'MaxRequest'.
DumpRequestenum: none, head, body, both required default: noneConfigures which parts of the request will be dumped.
DumpResponseenum: none, head, body, both required default: noneConfigures which parts of the response will be dumped.
CreateSessionboolean optional default: falseDefines if a session will be created that is used for the tracking of the files.
MaxBufferSizeinteger optional default: 8192Defines the maximal buffer size for incoming requests.
DisableBoolean required, conditional Supported pragmas: breakConditional attribute (only pragma: break supported) if the filter is disabled or not. If it is disabled, nothing will be dumped
Sample configuration
<filter>
<filter-name>DumpReqRes</filter-name>
<filter-class>ch::nevis::isiweb4::filter::debug::DumpFilter</filter-class>
<init-param>
<param-name>DumpDirectory</param-name>
<param-value>/var/opt/nevisproxy/default/run</param-value>
</init-param>
<init-param>
<param-name>MaxRequest</param-name>
<param-value>100</param-value>
</init-param>
<init-param>
<param-name>DumpRequest</param-name>
<param-value>both</param-value>
</init-param>
<init-param>
<param-name>DumpResponse</param-name>
<param-value>both</param-value>
</init-param>
</filter>