eclipse-ee4j / eclipse-ee4j/jersey
temporaryRedirect hangs browser if no entity is provided
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
We recently updated our project from Jersey 2.28 to 2.31
After the update, we find that temporary redirect responses hang the browser. If we add an empty string entity (entity("")), then everything works properly. In our particular test case, we are setting a cookie - I don't know if that is important or not to recreating the issue.
@GET
@Path("/endpoint")
@Produces({MediaType.APPLICATION_JSON})
public Response exercise_redirect(@NonNull @QueryParam("redirect_uri") URI redirectUri){
log.debug("Sending temporary redirect to " + redirectUri);
return Response
.temporaryRedirect( redirectUri)
.cookie(new NewCookie("some cookie", "cookie val"))
//.entity("") // this line is required in Jersey 2.31 but not 2.28
.build();
}
Contributor guide
Assessment
This issue has not been assessed yet.