struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Issue with jakarta-stream multipart parser
Date Thu, 07 Jan 2016 09:42:38 GMT
> The error message comes from the IllegalArgumentException thrown by 
> java.io.File.createTempFile() - it doesn't feature in the Struts 
> distribution at all. Because there's no entry in 
> struts-messages.properties for 
> struts.messages.upload.error.IllegalArgumentException it gets added to 
> the errors as-is I believe.
> 
> In JakartaStreamMultiPartRequest.createTemporaryFile() appending an 
> extra '_' to the prefix for the case when it has a length of less than 3 

> seems to resolve the issue with no side-effects from what I can tell.
> 
> Cheers,
> Stephen.
> 


Please create a jira issue for that.


As workaround you might create an own implementation of 
JakartaStreamMultiPartRequest and register it in struts config:

http://struts.apache.org/docs/file-upload.html (scroll to bottom)


Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message