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

"Shiryaev, Alexander" <[email protected]> Thu, 24 Oct 2024 17:04:51 +0000
Newsgroups gmane.comp.java.openejb.user
Message-ID <BY5PR12MB4195EBFA8FCE7C7B0720AFB59E4E2__18584.6791647904$1729789592$gmane$org@BY5PR12MB4195.namprd12.prod.outlook.com>
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