servlet icon indicating copy to clipboard operation
servlet copied to clipboard

sendRedirect permanent vs temporary and GET vs preserve method

Open glassfishrobot opened this issue 11 years ago • 6 comments

RFCs 7231 and 7238 now define 8 different redirect codes, yet HttpServletResponse.sendRedirect only supports 302

An additional API should be considered that allows both permanent and temporary redirection as well as Moved (MAY change method) vs Redirect (MUST NOT change method) semantics

MOVED_PERMANENTLY = 301; MOVED_TEMPORARILY = 302; TEMPORARY_REDIRECT = 307; PERMANENT_REDIRECT = 308;

glassfishrobot avatar Jul 28 '14 05:07 glassfishrobot

  • Issue Imported From: https://github.com/javaee/servlet-spec/issues/100
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @glassfishrobot

glassfishrobot avatar Jun 06 '18 07:06 glassfishrobot

@glassfishrobot Commented Reported by gregwilkins

glassfishrobot avatar Jul 28 '14 05:07 glassfishrobot

@glassfishrobot Commented markt_asf said: See also SPEC-74.

glassfishrobot avatar Aug 05 '14 20:08 glassfishrobot

@glassfishrobot Commented markt_asf said: Also, RFC7231 now permits location headers to use relative URLs whereas RFC2616 and the Servlet spec require them to be absolute. HttpServletResponse.sendRedirect() should be updated not to convert relative URLs to absolute.

glassfishrobot avatar Sep 05 '14 18:09 glassfishrobot

@glassfishrobot Commented Issue-Links: is related to SERVLET_SPEC-74

glassfishrobot avatar Jul 28 '14 05:07 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA SERVLET_SPEC-100

glassfishrobot avatar Apr 26 '17 06:04 glassfishrobot

The status code aspects of this can be covered under #74

markt-asf avatar Feb 21 '23 16:02 markt-asf