ICEfaces
  1. ICEfaces
  2. ICE-2237

Can't upload very small files when SSL is enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.7RC1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      jsf 1.2, jboss 4.2, windows

      Description

       There seems to be a bug in apache file upload 1.2 which causes files which are 44 bytes or less to not be uploaded.

      44 bytes is the length of the delimiter between parts of the multi-part stream. It seems that if the contents of the file is less than the size of the stream delimiter, then the input stream returns 0 bytes from the stream.
      1. screenshot-1.jpg
        152 kB
      2. screenshot-2.jpg
        187 kB
      3. screenshot-3.jpg
        156 kB

        Activity

        Hide
        Ken Fyten added a comment -

        Once an official file-upload release occurs we should update our version to resolve this issue.

        Show
        Ken Fyten added a comment - Once an official file-upload release occurs we should update our version to resolve this issue.
        Hide
        Ken Fyten added a comment -

        Let's go ahead and update to the latest 1.3 milestone for 1.7. Philip reports is solves the problem and we can't wait any longer for an official release.

        Please remember to update the "LicensesAndVersions.html" in the icefaces/lib/ directory to reflect the correct version number for the new .jar.

        Show
        Ken Fyten added a comment - Let's go ahead and update to the latest 1.3 milestone for 1.7. Philip reports is solves the problem and we can't wait any longer for an official release. Please remember to update the "LicensesAndVersions.html" in the icefaces/lib/ directory to reflect the correct version number for the new .jar.
        Hide
        yip.ng added a comment -

        Screenshot showing that the new commons-fileupload fixed the problem in Firefox.

        Show
        yip.ng added a comment - Screenshot showing that the new commons-fileupload fixed the problem in Firefox.
        Hide
        yip.ng added a comment -

        How to test:

        Follow the instructions at http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html to set up SSL. Then create a small file (e.g. 1 byte) and upload it from Firefox. See the screenshots for the https URL to use to access component showcase in SSL.

        Show
        yip.ng added a comment - How to test: Follow the instructions at http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html to set up SSL. Then create a small file (e.g. 1 byte) and upload it from Firefox. See the screenshots for the https URL to use to access component showcase in SSL.
        Hide
        Joanne Bai added a comment -

        QA successfully tested it on ICEfaces trunk subversion 18006 + tomcat 6 on FF2, IE6, IE7, and opera9.2

        Test Steps:

        • log onto QA server lnqa0 (10.18.39.15)
        • fire up tomcat 6 under /opt/apache-tomcat-6.0.16
        • deploy component showcase to the webapps folder
        • access showcase via https://lnqa0.ice/component-showcase
        • create a small enough file and try uploading it
        Show
        Joanne Bai added a comment - QA successfully tested it on ICEfaces trunk subversion 18006 + tomcat 6 on FF2, IE6, IE7, and opera9.2 Test Steps: log onto QA server lnqa0 (10.18.39.15) fire up tomcat 6 under /opt/apache-tomcat-6.0.16 deploy component showcase to the webapps folder access showcase via https://lnqa0.ice/component-showcase create a small enough file and try uploading it

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: