Details
Description
The FileUploadServlet doesn't take in account the current viewNumber to retrieve the correct PersistentFacesState. This code:
Object current_view_number = session.getAttribute(PersistentFacesServlet.CURRENT_VIEW_NUMBER);
would only work if the PersistentFacesServlet.CURRENT_VIEW_NUMBER session attribute would have been set at each call to the FileUploadServlet servlet. If we use the 1.5.3 version of IceFaces(without setting this session attribute), the current view number is the one from the last portlet on the page.
Object current_view_number = session.getAttribute(PersistentFacesServlet.CURRENT_VIEW_NUMBER);
would only work if the PersistentFacesServlet.CURRENT_VIEW_NUMBER session attribute would have been set at each call to the FileUploadServlet servlet. If we use the 1.5.3 version of IceFaces(without setting this session attribute), the current view number is the one from the last portlet on the page.
This issue is quite old and pre-dates the fixes to file-upload applied in 1.6. Please review to determine if it's still relevant.