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 19119 invoked from network); 14 Sep 2000 08:57:40 -0000 Received: from msp-26-164-174.mn.rr.com (HELO localhost.localdomain) (24.26.164.174) by locus.apache.org with SMTP; 14 Sep 2000 08:57:40 -0000 Received: from fatman (IDENT:nobody@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id CAA13657 for ; Thu, 14 Sep 2000 02:55:23 -0500 Message-ID: <134745423.968918123873.JavaMail.nobody@fatman> Date: Thu, 14 Sep 2000 02:55:23 -0500 (CDT) From: BugRat Mail System Reply-To: BugRat Mail System To: tomcat-bugs@cortexity.com Subject: BugRat Report #114 has been filed. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="134748375.968918123844.JavaMail.nobody@fatman" X-Mailer: org.gjt.mail.EnhancedMimeMsg, Organization: The Giant Java Tree, X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N --134748375.968918123844.JavaMail.nobody@fatman Content-Type: text/plain Content-Transfer-Encoding: 7bit Bug report #114 has just been filed. You can view the report at the following URL: REPORT #114 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: low Severity: non-critical Confidence: public Environment: Release: 3.2b3 JVM Release: N/A Operating System: Solaris OS Release: 7 Platform: Sparc Synopsis: mod_jk.c sets wrong server_name Description: mkd_jk.c does not pass the server name from the Host: header to tomcat. It passes the canonical server name instead. This is caused by a conditional on the host name being the wrong way round. Patch: --- src/native/apache1.3/mod_jk.c.orig Thu Aug 31 16:13:39 2000 +++ src/native/apache1.3/mod_jk.c Mon Sep 4 09:07:07 2000 @@ -343,7 +343,7 @@ s->remote_host = NULL_FOR_EMPTY(s->remote_host); s->remote_addr = NULL_FOR_EMPTY(r->connection->remote_ip); - s->server_name = (char *)(r->hostname ? r->server->server_hostname : r->hostname); + s->server_name = (char *)(r->hostname ? r->hostname : r->server->server_hostname); s->server_port = r->server->port; s->server_software = (char *)ap_get_server_version(); --134748375.968918123844.JavaMail.nobody@fatman Content-Type: text/html; name=Report-114.html Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Report-114.html Content-Description: DataSource attachment 'Report-114.html' BugRat Report # 114

BugRat Report # 114

Project: Tomcat Release: 3.2b3
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: low Severity: non-critical
Confidence: public

Submitter: Richard Evans ( rde@webtrak.co.uk )
Date Submitted: Sep 14 2000, 02:55:23 CDT
Responsible: Z_Tomcat Alias ( tomcat-bugs@cortexity.com )

Synopsis:
mod_jk.c sets wrong server_name
Environment: (jvm, os, osrel, platform)
N/A, Solaris, 7, Sparc

Additional Environment Description:

Report Description:
mkd_jk.c does not pass the server name from the Host: header to tomcat. It passes the canonical server name instead. This is caused by a conditional on the host name being the wrong way round. Patch: --- src/native/apache1.3/mod_jk.c.orig Thu Aug 31 16:13:39 2000 +++ src/native/apache1.3/mod_jk.c Mon Sep 4 09:07:07 2000 @@ -343,7 +343,7 @@ s->remote_host = NULL_FOR_EMPTY(s->remote_host); s->remote_addr = NULL_FOR_EMPTY(r->connection->remote_ip); - s->server_name = (char *)(r->hostname ? r->server->server_hostname : r->hostname); + s->server_name = (char *)(r->hostname ? r->hostname : r->server->server_hostname); s->server_port = r->server->port; s->server_software = (char *)ap_get_server_version();

How To Reproduce:
null

View this report online...
--134748375.968918123844.JavaMail.nobody@fatman--