eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
158 stars 107 forks source link

form with enctype="multipart/form-data" does not support large input data (16425 bytes) #5377

Closed dyegocarmo closed 5 months ago

dyegocarmo commented 6 months ago

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">


dyegocarmo commented 6 months ago

A complete example working is inside https://issues.redhat.com/browse/WFLY-18821

dyegocarmo commented 6 months ago

Version Mojarra inside Wildfly 30 is 4.0.4

dyegocarmo commented 6 months ago

tested with mojarra 4.0.5, same problem occurs

BalusC commented 6 months ago

Norepro. Nothing was "recently" changed in Mojarra related to that either. Mojarra is in the context of this problem merely the user of the HttpServletRequest not the implementor/provider of it. That's the servletcontainer itself (via jakarta.servlet.* implementations).

Just try a different servletcontainer to exclude the one and other. E.g. Glassfish, Liberty, Tomcat, etc. Or even an older version of WildFly with the latest Mojarra.

BalusC commented 5 months ago

Not an issue in Mojarra itself and work around was provided in original WildFly ticket https://issues.redhat.com/browse/WFLY-18821, so closing off.