DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13648>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13648 Makes file upload behaviour configurable Summary: Makes file upload behaviour configurable Product: Cocoon 2 Version: Current CVS Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Several existing options with the current multipart parser implementation were hardcoded to static final variables in CocoonServlet. Basically, this patch simply takes preferences for the existing behavior from web.xml. Specifically, the following changes are made: - Two new init-params are created in web.xml (autosave-uploads and overwrite- uploads) with explanatory comments - An existing undocumented init-param (upload-max-size) is added to web.xml with explanatory comments. - Removes MaybeUpload and adds Simple request factory in the explanation for request factory class options in web.xml - creates private boolean variables to org.apache.cocoon.servlet.CocoonServlet to hold the above preferences from web.xml - modified service()'s call to getServletRequest() to use new private booleans instead of the old static finals - modified handling of request-factory init-param in CocoonServlet to make MultipartRequestImpl the default in the unspecified condition instead of MaybeUploadReqestImpl Note for applying patch: These changes are compatible with parallel changes submitted recently by Leo Stutic (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13643) but two adjacent lines were modified - patch may reject that chunk depending on the order the patchs are applied and the fuzziness setting used. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]