Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      JBoss 4 / XP / Servlet / both Firefox and IE

      Description

      When parsing a request with the streaming API, some parameters loose their values. I can easily reproduce the problem when a lot of parameters are submitted (about 400 in a table). My code is as follows :

      final FileItemStream itemStream = anItemIterator.next();
      final String fieldName = itemStream.getFieldName();
      System.out.print("Field " + fieldName);
      InputStream stream = itemStream.openStream();
      final String value = Streams.asString(stream, "UTF-8");

      The last statement sometimes returns a value and sometimes not. Sometimes I can retreive all parameters, sometimes I loose 3 or 4 parameters. I reproduced the problem on two computers. I have a very small application with a servlet of 69 lines that reproduces the problem, the project is attached to this issue.

      1. correction_with_test_cases_in_distribution.zip
        17 kB
        Laurent Goncalves
      2. MultipartStream.java
        34 kB
        Laurent Goncalves
      3. test.fileupload.zip
        513 kB
        Laurent Goncalves
      4. test.fileupload.zip
        227 kB
        Vera Mickael

        Issue Links

          Activity

          Simone Tripodi made changes -
          Fix Version/s 1.3 [ 12312801 ]
          Jochen Wiedmann made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Jochen Wiedmann [ jochen@apache.org ]
          Fix Version/s 1.3 [ 12312801 ]
          Jochen Wiedmann made changes -
          Link This issue blocks FILEUPLOAD-135 [ FILEUPLOAD-135 ]
          Laurent Goncalves made changes -
          Laurent Goncalves made changes -
          Attachment test.fileupload.zip [ 12366081 ]
          Laurent Goncalves made changes -
          Attachment MultipartStream.java [ 12366072 ]
          Vera Mickael made changes -
          Description When parsing a request with the streaming API, some parameters loose their values. I can easily reproduce the problem when a lot of parameters are submitted (about 400 in a table). My code is as follows :

                      final FileItemStream itemStream = anItemIterator.next();
                      final String fieldName = itemStream.getFieldName();
                      System.out.print("Field " + fieldName);
                      InputStream stream = itemStream.openStream();
                      final String value = Streams.asString(stream, "UTF-8");

          The last statement sometimes returns a value and sometimes not. Sometimes I can retreive all parameters, sometimes I loose 3 or 4 parameters. I reproduced the problem on two computers. I have a very small application with a servlet of 69 lines that reproduces the problem.
          When parsing a request with the streaming API, some parameters loose their values. I can easily reproduce the problem when a lot of parameters are submitted (about 400 in a table). My code is as follows :

                      final FileItemStream itemStream = anItemIterator.next();
                      final String fieldName = itemStream.getFieldName();
                      System.out.print("Field " + fieldName);
                      InputStream stream = itemStream.openStream();
                      final String value = Streams.asString(stream, "UTF-8");

          The last statement sometimes returns a value and sometimes not. Sometimes I can retreive all parameters, sometimes I loose 3 or 4 parameters. I reproduced the problem on two computers. I have a very small application with a servlet of 69 lines that reproduces the problem, the project is attached to this issue.
          Vera Mickael made changes -
          Field Original Value New Value
          Attachment test.fileupload.zip [ 12364434 ]
          Vera Mickael created issue -

            People

            • Assignee:
              Jochen Wiedmann
              Reporter:
              Vera Mickael
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development