Re: JAX-RS endpoints stopped working with trailing slash in 10M3

Markus Jung <[email protected]> Fri, 25 Oct 2024 09:50:49 +0200
Newsgroups gmane.comp.java.openejb.user
Message-ID <[email protected]>
Hi Alex,


this sounds like a regression at first glance, I'll look into this and 
try to get it fixed. Thanks for testing milestone builds and giving us a 
heads up we might've broken something!


Thanks

Markus


On 24.10.24 19:04, Shiryaev, Alexander wrote:
> Hello,
>
> JAX-RS endpoints no longer work in Tomee 10M3 if we call them with trailing slash. It worked fine in 10M2.
> GET /api/hello - works
> GET /api/hello/ - doesn't works. Getting 404.
>
> It's likely related to https://issues.apache.org/jira/browse/TOMEE-4406 changes.
> We can use the same war file as in TOMEE-4406 to replicate the issue.
>
> Is it expected behavior or a regression? In my understanding both URLs (with and without trailing slash) should be resolved to the same JAX-RS endpoint.
>
> Thanks
> Alex
>