struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: [jira] [Updated] (WW-4717) Refactor file upload support to allow create virtual representation of java.io.File
Date Thu, 24 Nov 2016 10:06:02 GMT
....found it here :

https://github.com/lukaszlenart/struts/tree/WW-4717

Followed the instructions for the filter and listener updates to web.xml
and I get:


2016-11-24 10:01:03,825 WARN
org.apache.struts2.conversion.UploadedFileConverter
UploadedFileConverter:convertValue - Converting java.io.File into
org.apache.struts2.dispatcher.multipart.UploadedFile, consider switching to
org.apache.struts2.dispatcher.multipart.UploadedFile and do not access
java.io.File directly!
2016-11-24 10:01:03,949 ERROR mypackage.Resources Resources:upload - ERROR:
uploading resource
java.lang.NullPointerException: null




On 23 November 2016 at 12:56, Lukasz Lenart <lukaszlenart@apache.org> wrote:

> Could someone tag that PR with :+1:?
>
> 2016-11-22 20:41 GMT+01:00 Lukasz Lenart <lukaszlenart@apache.org>:
> > All is good :) I have refactored the file upload logic a bit, cleaned
> > up and fixed some issues with wrong message keys. Also I added
> > dedicated converter to keep support for java.io.File so there is no
> > need for migration :)
> >
> > I've also developed a small GAE plugin which is using the mentioned
> > changes (that's why build cannot pass as a Struts SNAPSHOT is wrong
> > ;-)), tested it locally and everything works as expected :D
> > https://github.com/lukaszlenart/struts2-gea-plugin
> >
> > Can you take a look on that PR?
> >
> >
> > Thanks in advance
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > 2016-11-22 9:44 GMT+01:00 Lukasz Lenart <lukaszlenart@apache.org>:
> >> Done, thanks Aaron :) Now I must test this solution with Google
> AppEngine ;-)
> >>
> >> 2016-11-22 7:49 GMT+01:00 Lukasz Lenart <lukaszlenart@apache.org>:
> >>> 2016-11-21 20:12 GMT+01:00 Aaron Johnson <johnson.aaron5@gmail.com>:
> >>>> Is it possible to have a converter from UploadedFile to File? The
> >>>> UploadedFile has a getContent() method that returns the File object.
> >>>
> >>> Hm... it would be possible to add a converter, that should work :)
> >>>
> >>>
> >>> Regards
> >>> --
> >>> Łukasz
> >>> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

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