Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18821

Wildfly 30: form with enctype="multipart/form-data" does not support large input data (16425 bytes)

    XMLWordPrintable

Details

    • Hide

      Deploy attached war in wildfly 30.0.0:

      Start http://localhost:8000/UploadTest-0.0.1-SNAPSHOT/index.html in browser and watch console:
      17:07:37,191 INFO [stdout] (default task-1) Size of test:25

       

      17:07:37,273 INFO [stdout] (default task-1) Size of test:50

       

      17:07:37,350 INFO [stdout] (default task-1) Size of test:75

      ...
      17:08:46,817 INFO [stdout] (default task-1) Size of test:16350

       

      17:08:46,959 INFO [stdout] (default task-1) Size of test:16375

       

      17:08:47,051 INFO [stdout] (default task-1) Size of test:16400

       

      17:08:47,157 INFO [stdout] (default task-1) Size of test:25

       

      With wildfly 29.0.1 the test runs without problems.

      Show
      Deploy attached war in wildfly 30.0.0: Start http://localhost:8000/UploadTest-0.0.1-SNAPSHOT/index.html in browser and watch console: 17:07:37,191 INFO [stdout] (default task-1) Size of test:25   17:07:37,273 INFO [stdout] (default task-1) Size of test:50   17:07:37,350 INFO [stdout] (default task-1) Size of test:75 ... 17:08:46,817 INFO [stdout] (default task-1) Size of test:16350   17:08:46,959 INFO [stdout] (default task-1) Size of test:16375   17:08:47,051 INFO [stdout] (default task-1) Size of test:16400   17:08:47,157 INFO [stdout] (default task-1) Size of test:25   With wildfly 29.0.1 the test runs without problems.
    • ---
    • ---

    Description

      Beginning with wildfly 30.0.0 parameter with more than 16425 Bytes input data are ignored if form has enctype "multipart/form-data"

       

      BackingBean:
      package
      bug;

       

      import java.io.Serializable;

       

      import jakarta.enterprise.context.RequestScoped;

      import jakarta.inject.Named;

       

      @Named

      @RequestScoped

      public class BackingBean implements Serializable{

      private String content;

      private String test = "1";

      public String getContent() {

      return content;

      }

      public void setContent(String content) {

      this.content = content;

      }

      public String getTest() {

      return test;

      }

      public void setTest(String test) {

      this.test = test;

      }

      public void action() {

      test +="AAAAAAAAAAAAAAAAAAAAAAA\n";

      System.out.println("Size of test:"+test.length());

      }

      {color:#000000}}

       

      index.xhtml
      <!
      DOCTYPE html>

      <html xmlns="http://www.w3.org/1999/xhtml"

      xmlns:h="jakarta.faces.html"

      lang="de">

      <h:head>

       

      </h:head>

      <h:body>

       

      <h:form enctype="multipart/form-data" id="testForm">

      <h:inputTextarea value="#{backingBean.test}" cols="20" rows="10"/>

      <br/>

      <h:commandButton value="Submit" action="#{backingBean.action}" id="btn"/>

      </h:form>

      <script >

      document.getElementById("testForm\:btn").click();

      </script>

      </h:body>

      </html>

       

      Attachments

        Issue Links

          Activity

            People

              jaslee@redhat.com Jason Lee
              jlandwehrPC Joachim Landwehr
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: