Re: Request.getParameter(String s) doesn't parse parameters
Eric Covener <[email protected]> Wed, 7 Jan 2026 14:40:53 -0500
| Newsgroups | gmane.comp.apache.user |
|---|---|
| Message-ID | <CALK=YjOMjWmpGUmygNKXtfnFAP8DuNS0Wfg6pJrEyGLaaYbOcw@mail.gmail.com> |
On Wed, Jan 7, 2026 at 2:37=E2=80=AFPM Nelson Page via users <[email protected]> wrote: > > Hi all - > > First time mailing on this list, please let me know what I can improve. > > I've run into a case where > org.apache.catalina.connector.Request.getParameter("some_parameter") > no longer results in the parameters getting parsed. > > We're on tomcat 9.0.107, using HTTP/2, the `content-length` header is > not being set, the `content-type` header is set to > `application/x-www-form-urlencoded`, and the HTTP method is `POST`. > > So I think what happens is in > https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/conn= ector/Request.java#L3094 > the `len` variable is set to -1, and we fall out in the `if` statement > below it. > > Is this expected behavior? Probably intended for [email protected] rather than httpd.