[ 
http://jira.andromda.org/browse/JSF-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on JSF-39 started by Walter Itamar Mourão.

> handleIsNeedsFileUpload incorrect conditional variable during inner iteration
> -----------------------------------------------------------------------------
>
>                 Key: JSF-39
>                 URL: http://jira.andromda.org/browse/JSF-39
>             Project: JSF cartridge
>          Issue Type: Bug
>            Reporter: Javier Adorno
>            Assignee: Walter Itamar Mourão
>
> Arises when there is more that one object coming out of a FrontEndView.
> This is the current method.
>     protected boolean handleIsNeedsFileUpload()
>     {
>         if(this.getParameters().size() == 0)
>             return false;
>             
>         for (final Iterator iterator = this.getParameters().iterator(); 
> iterator.hasNext();)
>         {
>             final Object object = iterator.next();
>             if (object instanceof JSFParameter){
>                 final JSFParameter parameter = (JSFParameter)object;
>                 if(parameter.isInputFile())
>                    return true;
>                 if(parameter.isComplex()){
>                     for(final Iterator attributes = 
> parameter.getAttributes().iterator(); iterator.hasNext();)
>                         if(((JSFAttribute)attributes.next()).isInputFile())
>                             return true;
>                 }
>             }
>         }
>         return false;
>     }
> In the inner for cycle the conditional variable is iterator.hasNext() and 
> should be attributes.hasNext()
> This change solves the issue

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 

Reply via email to