Skip to content

Conversation

TomasHofman
Copy link
Contributor

@TomasHofman TomasHofman commented Oct 2, 2025

This improves the path matching logic in resteasy-reactive server. It fixes the case when there are overlapping path templates registered, such as:

  • /path/foo/{param}
  • /path/foo/bar/{param}

and the incoming request has path /path/foo/bar_something. The expectation is that this path should be matched by the first template. The current behavior however is that server returns 404.

@TomasHofman TomasHofman changed the title Issue 50330 Fix handling of overlapping paths in resteasy-reactive server Oct 2, 2025
@quarkus-bot quarkus-bot bot added area/agroal area/amazon-lambda area/arc Issue related to ARC (dependency injection) area/cache area/cli Related to quarkus cli (not maven/gradle/etc.) area/codestarts area/config area/context-propagation area/core area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/docstyle issues related for manual docstyle review area/documentation area/elasticsearch area/fault-tolerance area/flyway area/funqy area/google-cloud-functions area/gradle Gradle area/graphics area/graphql area/grpc gRPC area/health area/hibernate-validator Hibernate Validator area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search area/hibernate-reactive Hibernate Reactive area/infinispan Infinispan area/jackson Issues related to Jackson (JSON library) labels Oct 2, 2025
@geoand
Copy link
Contributor

geoand commented Oct 3, 2025

Thanks @TomasHofman!

Did this pass CI on your fork?

@TomasHofman
Copy link
Contributor Author

Hi @geoand , I was locally running tests in following two modules:

  • independent-projects/resteasy-reactive/server/
  • extensions/resteasy-reactive/rest/

and those did pass. I was hoping to get more coverage here on the PR. Now as I reread the contributors file I will get GH actions working on my fork and let you know 👍 (it's been few years since I last contributed here).

@TomasHofman
Copy link
Contributor Author

@geoand actually the CI on my fork had run, and looks green (if you can access here? https://github.com/TomasHofman/quarkus/actions/runs/18191107425)

.body(equalTo("Foo bar_value"));
}

// TODO: remove this test before commit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this need to be removed :)

@geoand
Copy link
Contributor

geoand commented Oct 3, 2025

Cool! In that case, feel free to take it out of draft when you are done

@TomasHofman
Copy link
Contributor Author

@geoand sure, I will take bit more time, I'm looking at one more touch point.

@geoand
Copy link
Contributor

geoand commented Oct 3, 2025

Thanks! No rush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JAX-RS returns 404 incorrectly for route with path parameter containing prefix that matches segment from another route
2 participants