Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2688

when form is 'multipart/form-data', form component will never process update.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 2.0.0
    • None
    • JSR-314
    • None
    • mac os x, tomcat.

    Description

      because 'javax.view.id' will not be find in request.getParametersMap, the restore phase executor will stop execute.

      source code:
      package org.apache.myfaces.lifecycle;
      .........
      class RestoreViewExecutor implements PhaseExecutor
      ..........
      public boolean execute(FacesContext facesContext){
      ..................

      if (!errorPageRequest && restoreViewSupport.isPostback(facesContext))

      { ................ }

      ...............
      }

      restoreViewSupport.isPostback(facesContext) will call facesContext.getExternalContext().getRequestParameterMap().get(ResponseStateManager.VIEW_STATE_PARAM)

      but request.parameterMap is empty because of using 'multipart/form-data'.

      restoreViewSupport.isPostback(facesContext) will return false,

      then FacesContext.renderResponse() is called. the whole phasing process is stopped.

      suggestion:

      should wrap request.parameterMap from the first place.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            puddlor Mark Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 120h
                120h
                Remaining:
                Remaining Estimate - 120h
                120h
                Logged:
                Time Spent - Not Specified
                Not Specified