Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 77394 invoked from network); 7 Apr 2005 09:55:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2005 09:55:12 -0000 Received: (qmail 66219 invoked by uid 500); 7 Apr 2005 09:55:08 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 65930 invoked by uid 500); 7 Apr 2005 09:55:06 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 65917 invoked by uid 99); 7 Apr 2005 09:55:06 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 07 Apr 2005 02:55:05 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 6F8732CB; Thu, 7 Apr 2005 11:55:02 +0200 (CEST) From: bugzilla@apache.org To: dev@cocoon.apache.org Subject: DO NOT REPLY [Bug 34344] New: - Cforms upload widget weight limitation validator X-Bugzilla-Reason: AssignedTo Message-Id: <20050407095502.6F8732CB@ajax.apache.org> Date: Thu, 7 Apr 2005 11:55:02 +0200 (CEST) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34344 Summary: Cforms upload widget weight limitation validator Product: Cocoon 2 Version: 2.1.6 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: CocoonForms AssignedTo: dev@cocoon.apache.org ReportedBy: t.katelbach@systheo.com >My Form contains upload widgets, >I have limited the size parameter in web.xml upload config. >But I would like to get the oversized error as a form validation error. >In the Form validation docs, it says upload widget supports validation but >no idea of which rules. Sylvain Wallez wrote: There are no built-in validators for the upload widget except the mime-type checks. You can however plug an custom validator to check e.g. the content of the uploaded file. However, your problem is different and cannot be handled with the current CForms, and worse, with the current Cocoon as oversized upload is filtered very early in the request processing, i.e. in the CocoonServlet. What that means is that the upload widget has no means to know that upload has occured but was rejected. We need for this to enhance the multipart handling to pass an indication of the rejected upload to the application. Note that such indication would be useful also to detect that upload isn't enabled in web.xml. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.