Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 1175 invoked from network); 9 Aug 2000 19:13:49 -0000 Received: from unknown (HELO ginger.ginger.robotics.net) (199.72.31.129) by locus.apache.org with SMTP; 9 Aug 2000 19:13:49 -0000 Received: from cwslxrgw01 (dmzgate.saralee.net [207.140.66.1]) by ginger.ginger.robotics.net (8.8.8/8.8.7) with SMTP id PAA27833 for ; Wed, 9 Aug 2000 15:23:22 -0400 (EDT) (envelope-from russwyte@earthlink.net) Message-ID: <001701c00235$f0feda50$7204030a@slci.net> From: "Russ White" To: References: <20000809134743.X7381@real-time.com> Subject: Re: sendRedirect with relative url and SSL Date: Wed, 9 Aug 2000 15:13:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I worked around the problem by adding this line: if (socket instanceof javax.net.ssl.SSLSocket) this.scheme="https"; in tis method: public void setSocket(Socket socket) throws IOException { if( sin==null) sin = new RecycleBufferedInputStream ( socket.getInputStream()); else sin.setInputStream( socket.getInputStream()); in = new BufferedServletInputStream(this); this.socket = socket; moreRequests = true; if (socket instanceof javax.net.ssl.SSLSocket) this.scheme="https"; } in HttpRequestAdapter Now everything works fine. Russ White ----- Original Message ----- From: "Bob Tanner" To: Sent: Wednesday, August 09, 2000 2:47 PM Subject: sendRedirect with relative url and SSL > % java -version > java version "1.2.2" > Classic VM (build 1.2.2_006, green threads, nojit) > > % uname -a > Linux 2.2.14-4 #1 Tue Feb 8 14:32:26 CST 2000 i686 unknown > > Tomcat Web Server 3.3 dev > > Looks like the external redirect with SSL bug still exists in Tomcat 3.3 dev. > This is a thread from earlier in Aug, thread url included below: > > http://archives2.real-time.com/pipermail/tomcat-users/2000-August/002714.htm l > > The summary is: When you do a sendRedirect() from inside an SSL page, the url is > re-written as http (no s) BUT the SSL-defined port is tacked on so things get > flakey. > > > -- > Bob Tanner | Phone : (612)943-8700 > http://www.mn-linux.org | Fax : (612)943-8500 > Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > >