You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (JIRA)" <de...@myfaces.apache.org> on 2017/09/24 19:28:00 UTC
[jira] [Comment Edited] (MYFACES-4155) For inputFile upload when
multipart form is submitted the actionListener is not able to get the
file.getSubmittedFileName()
[ https://issues.apache.org/jira/browse/MYFACES-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178326#comment-16178326 ]
Thomas Andraschko edited comment on MYFACES-4155 at 9/24/17 7:27 PM:
---------------------------------------------------------------------
[~dorarajappan] I refactored the code a little bit but not sure it helps. Could you try again?
Otherwise i think it would be the best to update to servlet 3.1 and remove the reflection.
was (Author: tandraschko):
I refactored the code a little bit but not sure it helps. Could you try again?
Otherwise i think it would be the best to update to servlet 3.1 and remove the reflection.
> For inputFile upload when multipart form is submitted the actionListener is not able to get the file.getSubmittedFileName()
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-4155
> URL: https://issues.apache.org/jira/browse/MYFACES-4155
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.3.0-beta
> Reporter: Dora Rajappan
>
> For inputFile upload when multipart form is submitted the actionListener is not able to get the file.getSubmittedFileName() . It throws below exception with myfaces while its passed with mojarra.
> Class org.apache.myfaces.shared.renderkit.html.util.HttpPartWrapper can not access a member of class org.apache.catalina.fileupload.PartItem with modifiers "public"
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
> at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
> at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
> at java.lang.reflect.Method.invoke(Method.java:491)
> at org.apache.myfaces.shared.renderkit.html.util.HttpPartWrapper.getSubmittedFileName(HttpPartWrapper.java:96)
> at UserBean.save(UserBean.java:595)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)