You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2008/12/21 06:44:38 UTC

[jira] Closed: (STR-3142) do not set form-file silently to null if setXXX() method is not specific enough

     [ https://issues.apache.org/struts/browse/STR-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict closed STR-3142.
------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: Pending Review)
         Assignee: Paul Benedict

Form population is delegated to Apache Commons BeanUtils, and it finds method according to the JavaBean spec. The issue you raised actually deals a violation to the JavaBean spec.

> do not set form-file silently to null if setXXX() method is not specific enough
> -------------------------------------------------------------------------------
>
>                 Key: STR-3142
>                 URL: https://issues.apache.org/struts/browse/STR-3142
>             Project: Struts 1
>          Issue Type: Bug
>    Affects Versions: 1.3.9
>         Environment: any
>            Reporter: Ralf Hauser
>            Assignee: Paul Benedict
>
> as a (unsuccessful) workaround for STR-2778, I changed the set method in a ActionForm object to
> public void setFile(Object file) {
>    this file= (FormFile) file;
> }
> it seems that struts does not like this setter and silently ignores it  :(

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.