tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43647] New: - Content-Type changes unexpectedly from text/html to text/plain
Date Thu, 18 Oct 2007 07:58:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43647>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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

           Summary: Content-Type changes unexpectedly from text/html to
                    text/plain
           Product: Tomcat 5
           Version: Unknown
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: oliver.leonhardt@eds.com


If one client extensively refreshes a dynamic Java web page (especially a JSF
web page) hosted within the Tomcat container through mod_jk the value of the
Content-Type-HTTP-header-line sometimes unexpectedly changes from
“text/html;charset=ISO-8859-1” to “text/plain”.


The problem seems to exist since mod_jk version 1.2.20. With version 1.2.19 the
problem doesn’t occur.

The problem exists for Apache/mod_jk installations both on Windows and Linux.

The problem occurs with Firefox and Internet Explorer.

Even if a little effort and patience is needed, the problem is reproducible.


Proceed as following to reproduce the problem:
Prerequisites:
It is assumed an Apache version >= 2.2.4 with loaded mod_jk version >= 1.2.20 is
present. It doesn’t matter whether mod_jk is a static (compiled in) or a shared
module and whether mod_jk is precompiled (from the binary distribution) or
compiled on the machine in question.

A recent JDK is in place and the JAVA_HOME environment variable is set correctly.

Steps to reproduce the problem:
Download latest JBoss AS from here:
http://labs.jboss.com/jbossas/downloads/

Extract the JBoss archive

Download the MyFaces Tomahawk examples (tomahawk-examples-1.1.6-bin.tar.gz) from
here:
http://myfaces.apache.org/download.html

Extract myfaces-example-simple-1.1.6.war from the archive

Extract the content of myfaces-example-simple-1.1.6.war to a new directory named
myfaces-example-simple-1.1.6.war in the directory
<JBOSS_HOME>/server/default/deploy/

Remove myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar from directory
<JBOSS_HOME>/server/default/deploy/myfaces-example-simple-1.1.6.war/WEB-INF/lib/

Start JBoss by running the run-script in <JBOSS_HOME>/bin/

Test the MyFaces examples by pointing your web browser to:
http://localhost:8080/myfaces-example-simple-1.1.6/jscookmenu.jsf
and press Ctrl + Shift + the web browser’s refresh button multiple times in
short intervals. The page should be displayed correctly after every refresh.

Configure Apache/mod_jk with the following minimal configuration:
<IfModule mod_jk.c>
  JkWorkerProperty worker.list=worker1
  JkWorkerProperty worker.worker1.type=ajp13
  JkMount /myfaces-example-simple-1.1.6/* worker1
</IfModule>

Start Apache

Point your web browser to:
http://localhost/myfaces-example-simple-1.1.6/jscookmenu.jsf

Press Ctrl + Shift + the web browser’s refresh button multiple times in short
intervals

After some refreshes the plain HTML of the page should be displayed instead of
the properly parsed web page

Environment used for the procedure described above:
Windows XP SP2 32bit
Apache 2.2.4
mod_jk 1.2.25 from the binary distribution as shared module for Apache 2.2.4
JBoss 4.2.1.GA with Tomcat 6
Internet Explorer 6 and Mozilla Firefox 2.0.0.7


A notice:
If the AJP13 traffic between Apache/mod_jk and JBoss/Tomcat/Port 8009 is
monitored, it can be seen that the value of the Content-Type-header-line is
always “text/html;charset=ISO-8859-1” and never “text/plain”.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message