Skip to content

Reproducer for bug w/ Quarkus Reactive REST packages when using regex in path values.

Notifications You must be signed in to change notification settings

autumnfound/quarkus-regex-trailing-slashes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducer for Quarkus Reactive REST package issue

When attempting to navigate to endpoints that use regex within the path expression (i.e. @Path("{somePath:[a-z]{2}}")), trailing slashes do not properly route to the resource and instead return an error that the path cannot be found.

This seems to be a regression/missed aspect for the fix associated with quarkusio/quarkus#26016.

Reproduction steps:

  1. With server started, open the following URLs in browser to confirm that endpoints do properly exist + route:
  1. In browser, open the following links to observe behaviour with trailing slashes

All 3 URLs in step 2 should pass, but only the first link does

Expected

In cases where there are regex expressions within the @Path value, adding trailing slashes to the endpoint should route to the same endpoint.

Actual

When a trailing slash is present in URL for endpoints that contain a regex in the path, the endpoint doesn't properly route.

About

Reproducer for bug w/ Quarkus Reactive REST packages when using regex in path values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages