ICEfaces
  1. ICEfaces
  2. ICE-11246

ace:fileEntry does not namespace all request parameters in a portlet environment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.BETA
    • Fix Version/s: 4.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Portlet 3.0 / Mojarra 2.3.0-m10
    • Assignee Priority:
      P1

      Description

      h3. Steps to Reproduce:

      A. Follow steps #1 - #11 in ICE-11241.

      B. Using the browser inspection tools, view the list of network requests

      C. Using the "Choose Files" button, select a file to upload.

      D. Click on the "Add Attachment" button

      E. Examine the "Headers" of the XHR postback (the JSF partial request)

      (/) Expected Results
      Request parameters like "javax.faces.partial.execute", "javax.faces.partial.render", "file-entry-id", and "ice.fileEntry.ajaxResponse" are properly prefixed with the portlet namespace. For example:
      {noformat}
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2"

      Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.encodedURL"

      /pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;_jsfBridgeAjax:true
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.encodedURL"

      /pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;ice.view:vau7scq2%3A0/__rv0;ice.fileEntry.multipart:true/__rv0;ice.window:4hizkbmr88/__rv0;_jsfBridgeAjax:true
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:file-entry-id"

      fileEntryComp
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.window"

      4hizkbmr88
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.view"

      vau7scq2:0
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:fileEntryComp"; filename="About Downloads.pdf"
      Content-Type: application/pdf


      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:_t46"

      Add Attachment
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ViewState"

      -8366486400589380942:5984252524555356248
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ClientWindow"

      4hizkbmr88
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.source"

      Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.execute"

      Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.render"

      @all
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.ajax"

      true
      ------WebKitFormBoundaryShrweHKzcB8GSFHv
      Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.ajaxResponse"

      true
      ------WebKitFormBoundaryShrweHKzcB8GSFHv--
      {noformat}

      (x) Actual Results

      Request parameters are *not* prefixed with the portlet namespace, and the file does not upload.
      1. js-console.txt
        33 kB
        Ken Fyten
      2. FileEntryFormSubmit.java.patch
        2 kB
        Neil Griffin
      3. fileEntry.js.patch
        3 kB
        Neil Griffin

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50759 Mon Feb 27 16:10:59 MST 2017 mircea.toma ICE-11246 Prefix file upload specific parameters with the portlet namespace.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/fileentry/fileEntry.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/fileentry/FileEntryFormSubmit.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: