ICEfaces
  1. ICEfaces
  2. ICE-3293

Seam - NPE and no facesMessage for fileupload component on upload of empty file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.7.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Seam, standard request scope

      Description

      Changes to fileupload for 1.7.1 causes NPE for upload of empty file and the facesMessage for the invalid upload is not rendered.

      Fix to UploadServer (which uses PersistentFacesState.setupAndExecuteAndRender()) Since execute() and render() methods reset FacesContext at end of each of these methods you end up with null FacesContext. So....After performing the setupAndExecuteAndRender() must setCUrrent() again.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17065 Wed Jul 09 13:58:17 MDT 2008 judy.guglielmin ICE-3293 fix for upload of empty files for Seam
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/UploadServer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17062 Wed Jul 09 13:56:00 MDT 2008 judy.guglielmin ICE-3293 fix for upload of empty files for Seam
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/webapp/http/core/UploadServer.java

          People

          • Assignee:
            Unassigned
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: