eclipse-ee4j / eclipse-ee4j/jersey

Using seeOther on a PUT Request redirects into a PUT request

Open
#3,808 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

I am using the POST/Redirect/GET pattern in my web application. It works as intended in a POST request. However when I return a Response.seeOther(uri) in my PUT request, it redirects into the same PUT request instead of the GET with the same URL(and I get a too many server redirects exception). I am not sure about the HTTP specification but isn't this a viable use case? Shouldn't POST/Redirect/GET be applicable to PUT/Redirect/GET?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported PUT request that returns Response.seeOther(uri), then trace Jersey's redirect handling for the resulting response. Compare the observed method preservation with the expected POST/Redirect/GET behavior and identify the relevant HTTP specification requirements; done means the redirect behavior is explicitly resolved and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.