You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/19 16:32:53 UTC

DO NOT REPLY [Bug 18147] New: - Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18147

Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

           Summary: Using HttpServletResponse.sendRedirect() with a mailto
                    loses the 'to' information
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: apache@hillsidedrive.com


>From a servlet, in doGet - redirect the response like so:
  public void doGet(HttpServletRequest req, HttpServletResponse res) {
    //lot of stuff snipped
     res.sendRedirect("mailto:sombody@somewhere.com?subject=test") ;
    //...
  } 

The browser gets "mailto:?subject=test".  Notice the 'to' address is missing.
Happens without parameters (?subject...) as well, will just get "mailto:" in 
the browser.

This is not a browser issue, happens with multiple browsers:
- IE 5.5, 6 on Windows 2000:  A blank browser window results with "mailto:" in 
the address bar, an email message composer pops up with nothing in the "to" 
field.
- Konqueror 3.0.5a Using KDE 3.0.5a on Linux:  browser returns the 
message "Access denied to mailto:?subject=test"

Tomcat is running on Linux (RH7.1)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org