Re: 7.1.1 upload with zero file size

Greg Huber <[email protected]> Sat, 4 Oct 2025 10:47:27 +0100
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <[email protected]>
It is not really a custom stack, it uses the workflow interceptor (to 
call validate())

<interceptor-ref name="workflow">
                     <param 
name="excludeMethods">execute,cancel*,previous</param>
  </interceptor-ref>

There is something thing different to the logic used for the zero file 
size check compared with the max file size check, where I don't get two 
error messages.  These should use the same logic.

On 04/10/2025 09:54, Lukasz Lenart wrote:
> I tested the empty file upload behaviour using the example app
> https://github.com/apache/struts-examples/tree/main/file-upload
> It uses single <s:actionerror/> tag and based on struts-default
> package, and I get single error message:
>
>> File zero.txt for field upload is empty (0 bytes). Empty file uploads are not allowed.
> I assume you have used a custom interceptor stack (as you have
> mentioned early) and that was the cause.
>
>
> Cheers
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:[email protected]
> For additional commands, e-mail:[email protected]
>