Skip to content

EndpointRequest should support Jersey rather than hardcoding DispatcherServlet  #13399

@tpischke

Description

@tpischke

See the following line in EndpointRequest where the DispatcherServlet is hardcoded:

Since we are using Jersey in our application without the DispatcherServlet on the classpath, an exception is thrown here, resulting in EMPTY_MATCHER being used. The result for the client is that the EndpointRequest never matches any pattern.

Our workaround is simply to use an AntMatcher instead, but it would be nicer if this was fixed in EndpointRequest so that we could use the more convenient EndpointMatcher API.

At a minimum, it should be documented that EndpointRequest matchers are only compatible with DispatcherServlet Endpoints.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions