Skip to main content

[JIRA] Resolved: (SERVLET_SPEC-27) sendRedirect Javadoc prevents use of protocol relative URLs

  • From: "Shing Wai Chan (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Resolved: (SERVLET_SPEC-27) sendRedirect Javadoc prevents use of protocol relative URLs
  • Date: Thu, 19 Jan 2012 18:40:25 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/SERVLET_SPEC-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shing Wai Chan resolved SERVLET_SPEC-27.
----------------------------------------

    Resolution: Fixed

Sending        src/main/java/javax/servlet/http/HttpServletResponse.java
Transmitting file data .
Committed revision 52212.

> sendRedirect Javadoc prevents use of protocol relative URLs
> -----------------------------------------------------------
>
>                 Key: SERVLET_SPEC-27
>                 URL: http://java.net/jira/browse/SERVLET_SPEC-27
>             Project: servlet-spec
>          Issue Type: Improvement
>            Reporter: markt_asf
>            Assignee: Shing Wai Chan
>
> The Javadoc for sendRedirect() is quite clear that a URL starting with '/' 
> should be treated as relative to the server root. However, that precludes 
> the use of protocol relative URLs that start with '//'. See [1] for details 
> of why these might be useful. While there are clearly arguments for and 
> against protocol relative URLs, I don't think we should preclude their use 
> and therefore the Javadoc for sendRedirect should be amended to allow for 
> them.
> [1] 
> http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Resolved: (SERVLET_SPEC-27) sendRedirect Javadoc prevents use of protocol relative URLs

Shing Wai Chan (JIRA) 01/19/2012
 
 
Close
loading
Please Confirm
Close