Moreover here the error message is hard coded in the java file. It may not be acceptable for many companies.
On Mon, Feb 16, 2015 at 6:34 PM, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2015-02-16 13:56 GMT+01:00 Christoph Nenning < > christoph.nenn...@lex-com.net>: > >> > >> Thanks a Lot. Upgrading the struts2 version to 2.3.20 and using the > >> alternative libraries, solved the problem. > >> But additionally while using the alternate library , I needed to declare > >> bellow constant > >> <constant name="struts.multipart.bufferSize" value="10240" /> > >> > >> Is it necessary? > >> > > > > > > It seems that has been forgotten. So yes, currently it is necessary that > > you add it yourself. > > > > > > > > @Lukasz > > Should this be added to 'default.properties'? > > Create jira first? Or can it just be committed? > > Yes, please create JIRA ticket first as this is a simple bug :) > And it can be solved by adding "required = false" as below in > JakartaStreamMultiPartRequest. "this.bufferSize" is already set to > "BUFFER_SIZE = 10240;" > > @Inject(value = StrutsConstants.STRUTS_MULTIPART_BUFFERSIZE, required = > false) > public void setBufferSize(String bufferSize) { > this.bufferSize = Integer.parseInt(bufferSize); > } > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >