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]

Reply via email to