Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.28
-
None
-
None
Description
Struts 2 allows to redefine error messages when an upload fails (as documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
For instance, if I upload a file with a size greater than allowed by the configuration using fileUpload interceptor and commons-fileupload dependency, the following key of my resource bundle is used :
struts.messages.upload.error.SizeLimitExceededException=File size exceeded (in i18n.properties).
However, when the current language is not the default one, the translated key (in i18n_fr.properties for instance) is not taken into account (the default language is used instead).
The issue seems similar to WW-3177 (that was fixed in 2.3.7).