eclipse-ee4j / eclipse-ee4j/jersey
requestContext.setRequestUri(uri) doesn't use the existing baseUri
Open
Component: core
Priority: Major
Type: Bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I am using a @PreMatching filter to forward requests.
If I call requestContext.setRequestUri(new Uri("/relative/resource/path")), jersey will not find the matching resource.
The same thing happens if I call requestContext.setRequestUri(new Uri("http://localhost:8080/rest/"), new Uri("/relative/resource/path"))
I can only get jersey to match the resource if I specify the entire url ex.
requestContext.setRequestUri(new Uri("http://localhost:8080/rest/relative/resource/path"))
#### Affected Versions
[2.24.1]
Contributor guide
Assessment
This issue has not been assessed yet.