You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martynas Jusevičius <ma...@atomgraph.com> on 2023/03/06 12:24:26 UTC

[10.1.4] Dots in URL

Hi,

I have a JAX-RS application deployed on Tomcat.

When a URL contains dots, I get a 422 Unprocessable Entity response
which looks like it's coming from Tomcat.

When I remove the dots, the request works fine and reaches my application.

Is that Tomcat's behavior?

Martynas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [10.1.4] Dots in URL

Posted by Martynas Jusevičius <ma...@atomgraph.com>.
Thanks.

On Mon, 6 Mar 2023 at 13.32, Mark Thomas <ma...@apache.org> wrote:

> On 06/03/2023 12:24, Martynas Jusevičius wrote:
> > Hi,
> >
> > I have a JAX-RS application deployed on Tomcat.
> >
> > When a URL contains dots, I get a 422 Unprocessable Entity response
> > which looks like it's coming from Tomcat.
> >
> > When I remove the dots, the request works fine and reaches my
> application.
> >
> > Is that Tomcat's behavior?
>
> No. The Tomcat code never returns a 422 response. It must be coming from
> the application or some other component in the stack (e..g a reverse
> proxy).
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [10.1.4] Dots in URL

Posted by Mark Thomas <ma...@apache.org>.
On 06/03/2023 12:24, Martynas Jusevičius wrote:
> Hi,
> 
> I have a JAX-RS application deployed on Tomcat.
> 
> When a URL contains dots, I get a 422 Unprocessable Entity response
> which looks like it's coming from Tomcat.
> 
> When I remove the dots, the request works fine and reaches my application.
> 
> Is that Tomcat's behavior?

No. The Tomcat code never returns a 422 response. It must be coming from 
the application or some other component in the stack (e..g a reverse proxy).

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org