You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Woodchuck <wo...@yahoo.com> on 2005/07/06 18:34:46 UTC

RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

--- "Caldarale, Charles R" <Ch...@unisys.com> wrote:

> > From: Woodchuck [mailto:woodchuck_5@yahoo.com] 
> > Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
> candidate?]
> > 
> > here is the relevant header info from Tomcat 4.1:
> > 
> > HTTP/1.x 200 OK
> > Etag: W/"1706-1120587147968"
> > Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> > Content-Type: text/plain
> > Content-Length: 1706
> > Date: Tue, 05 Jul 2005 20:59:46 GMT
> > Server: Apache Coyote/1.0
> > Proxy-Connection: Keep-Alive
> > 
> > and here is the relevant header info from Tomcat 5.5:
> > 
> > If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
> > If-None-Match: W/"1706-1120416178619"
> > HTTP/1.x 304 Not Modified
> > Server: Apache-Coyote/1.1
> > Date: Tue, 05 Jul 2005 19:57:35 GMT
> 
> You've got apples and oranges here.  The 1st response actually
> includes
> the text, whereas the 2nd just tells the browser to use what it has
> already cached.  You need to try it again with the cache cleared
> prior
> to each request.
> 
>  - Chuck
> 

alrighty, i've retested again.  same results.

each time prior to requesting the .txt file i cleared the cache of the
browser just to be sure.


header chunk generated by Tomcat 4.1 for a .txt file:

HTTP/1.1 200 
Server: Microsoft-IIS/5.0
Date: Wed, 06 Jul 2005 16:22:39 GMT
ETag: W/"1706-1120587147968"
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706


header chunk generated by Tomcat 5.5 for a .txt file:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/"1706-1120666790014"
Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
Content-Length: 1706
Date: Wed, 06 Jul 2005 16:20:26 GMT


as the above shows, Tomcat 5.5 did not product the "Content-Type:
text/plain" when it served back the .txt file to the browser.

i also checked the Tomcat 5.5's conf/web.xml file and the mime mapping
for txt files is there.

    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>

i will enter this to Bugzilla then.  i'm guessing this is not likely to
be a Tomcat 5.5 configuration issue although i'm not 100% sure.

thanks to everyone who helped on this!

woodchuck


		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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


[RESOLVED] RE: obscure tomcat 5.5 text file display bug? [NOT a Bugzilla]

Posted by Woodchuck <wo...@yahoo.com>.
sorry all,

i did more testing and found the cause to be because the text files i
was requesting had uppercase extensions... ie. "TXT" rather than "txt".

and as expected a work-around was to add the following mime-mapping in
conf/web.xml:

    <mime-mapping>
        <extension>TXT</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>

so sorry for the false alarm.  :(

sincerely,
woodchuck  <-- needs to improve on testing




		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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


RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

Posted by Woodchuck <wo...@yahoo.com>.
phew! (relief)  the results are the same...

both Tomcat version instances accessed directly via port 8080 (not
through IIS).  cleared cache each time prior to requesting TXT file.


header chunk from Tomcat 4.1 when serving a TXT file:

HTTP/1.1 200 OK
ETag: W/"1706-1120587147968"
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706
Date: Wed, 06 Jul 2005 18:54:08 GMT
Server: Apache Coyote/1.0


header chunk from Tomcat 5.5 when serving a TXT file:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/"1706-1120666790014"
Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
Content-Length: 1706
Date: Wed, 06 Jul 2005 18:57:00 GMT


thanks again, Mike, for noticing the IIS difference.  i would hate to
have filed my first Bugzilla falsely... -_-


woodchuck



--- Woodchuck <wo...@yahoo.com> wrote:

> ack!  you are right!  thanks for noticing this.  actually, they are
> both setup with JK connector redirecting from IIS to Tomcat (let me
> know if you want to know why one is different from the other.. it's a
> longer story)
> 
> at any rate, let me test again by accessing both directly without
> using
> IIS (ie. port 8080).
> 
> 
> woodchuck
>  
> 
> --- GB Developer <gb...@globallyboundless.com> wrote:
> 
> > Why does 4.x have:
> > HTTP/1.1 200 
> > Server: Microsoft-IIS/5.0
> > 
> > and 5.x have:
> > HTTP/1.1 200 OK
> > Server: Apache-Coyote/1.1
> > 
> > 
> > Are you fronting 4.x with IIS, and not 5.x?  That is one config
> > difference
> > that you'll need to dispense with, in order to be fairly comparing
> > the two.
> > 
> > Mike Curwen
> > 
> > 
> > > 
> > > header chunk generated by Tomcat 4.1 for a .txt file:
> > > 
> > > HTTP/1.1 200 
> > > Server: Microsoft-IIS/5.0
> > > Date: Wed, 06 Jul 2005 16:22:39 GMT
> > > ETag: W/"1706-1120587147968"
> > > Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> > > Content-Type: text/plain
> > > 
> > > 
> > > header chunk generated by Tomcat 5.5 for a .txt file:
> > > 
> > > HTTP/1.1 200 OK
> > > Server: Apache-Coyote/1.1
> > > ETag: W/"1706-1120666790014"
> > > Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
> > > Date: Wed, 06 Jul 2005 16:20:26 GMT
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail for Mobile 
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


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


RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

Posted by Woodchuck <wo...@yahoo.com>.
ack!  you are right!  thanks for noticing this.  actually, they are
both setup with JK connector redirecting from IIS to Tomcat (let me
know if you want to know why one is different from the other.. it's a
longer story)

at any rate, let me test again by accessing both directly without using
IIS (ie. port 8080).


woodchuck
 

--- GB Developer <gb...@globallyboundless.com> wrote:

> Why does 4.x have:
> HTTP/1.1 200 
> Server: Microsoft-IIS/5.0
> 
> and 5.x have:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> 
> 
> Are you fronting 4.x with IIS, and not 5.x?  That is one config
> difference
> that you'll need to dispense with, in order to be fairly comparing
> the two.
> 
> Mike Curwen
> 
> 
> > 
> > header chunk generated by Tomcat 4.1 for a .txt file:
> > 
> > HTTP/1.1 200 
> > Server: Microsoft-IIS/5.0
> > Date: Wed, 06 Jul 2005 16:22:39 GMT
> > ETag: W/"1706-1120587147968"
> > Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> > Content-Type: text/plain
> > 
> > 
> > header chunk generated by Tomcat 5.5 for a .txt file:
> > 
> > HTTP/1.1 200 OK
> > Server: Apache-Coyote/1.1
> > ETag: W/"1706-1120666790014"
> > Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
> > Date: Wed, 06 Jul 2005 16:20:26 GMT
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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


RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

Posted by GB Developer <gb...@globallyboundless.com>.
Why does 4.x have:
HTTP/1.1 200 
Server: Microsoft-IIS/5.0

and 5.x have:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1


Are you fronting 4.x with IIS, and not 5.x?  That is one config difference
that you'll need to dispense with, in order to be fairly comparing the two.

Mike Curwen


> 
> header chunk generated by Tomcat 4.1 for a .txt file:
> 
> HTTP/1.1 200 
> Server: Microsoft-IIS/5.0
> Date: Wed, 06 Jul 2005 16:22:39 GMT
> ETag: W/"1706-1120587147968"
> Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> Content-Type: text/plain
> 
> 
> header chunk generated by Tomcat 5.5 for a .txt file:
> 
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> ETag: W/"1706-1120666790014"
> Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
> Date: Wed, 06 Jul 2005 16:20:26 GMT
> 


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


RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

Posted by Woodchuck <wo...@yahoo.com>.
woohoo!  my first Bugzilla!!

http://issues.apache.org/bugzilla/show_bug.cgi?id=35632

:D

woodchuck


--- Woodchuck <wo...@yahoo.com> wrote:

> --- "Caldarale, Charles R" <Ch...@unisys.com> wrote:
> 
> > > From: Woodchuck [mailto:woodchuck_5@yahoo.com] 
> > > Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
> > candidate?]
> > > 
> > > here is the relevant header info from Tomcat 4.1:
> > > 
> > > HTTP/1.x 200 OK
> > > Etag: W/"1706-1120587147968"
> > > Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> > > Content-Type: text/plain
> > > Content-Length: 1706
> > > Date: Tue, 05 Jul 2005 20:59:46 GMT
> > > Server: Apache Coyote/1.0
> > > Proxy-Connection: Keep-Alive
> > > 
> > > and here is the relevant header info from Tomcat 5.5:
> > > 
> > > If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
> > > If-None-Match: W/"1706-1120416178619"
> > > HTTP/1.x 304 Not Modified
> > > Server: Apache-Coyote/1.1
> > > Date: Tue, 05 Jul 2005 19:57:35 GMT
> > 
> > You've got apples and oranges here.  The 1st response actually
> > includes
> > the text, whereas the 2nd just tells the browser to use what it has
> > already cached.  You need to try it again with the cache cleared
> > prior
> > to each request.
> > 
> >  - Chuck
> > 
> 
> alrighty, i've retested again.  same results.
> 
> each time prior to requesting the .txt file i cleared the cache of
> the
> browser just to be sure.
> 
> 
> header chunk generated by Tomcat 4.1 for a .txt file:
> 
> HTTP/1.1 200 
> Server: Microsoft-IIS/5.0
> Date: Wed, 06 Jul 2005 16:22:39 GMT
> ETag: W/"1706-1120587147968"
> Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
> Content-Type: text/plain
> Content-Length: 1706
> 
> 
> header chunk generated by Tomcat 5.5 for a .txt file:
> 
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> ETag: W/"1706-1120666790014"
> Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
> Content-Length: 1706
> Date: Wed, 06 Jul 2005 16:20:26 GMT
> 
> 
> as the above shows, Tomcat 5.5 did not product the "Content-Type:
> text/plain" when it served back the .txt file to the browser.
> 
> i also checked the Tomcat 5.5's conf/web.xml file and the mime
> mapping
> for txt files is there.
> 
>     <mime-mapping>
>         <extension>txt</extension>
>         <mime-type>text/plain</mime-type>
>     </mime-mapping>
> 
> i will enter this to Bugzilla then.  i'm guessing this is not likely
> to
> be a Tomcat 5.5 configuration issue although i'm not 100% sure.
> 
> thanks to everyone who helped on this!
> 
> woodchuck
> 
> 
> 		
> ____________________________________________________
> Sell on Yahoo! Auctions – no fees. Bid on great items.  
> http://auctions.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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