[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-603) Use httpResponse.setContentType("text/html; charset=UTF-8"); in login form

Marek Posolda (JIRA) jira-events at lists.jboss.org
Mon Feb 8 07:21:19 EST 2010


Use httpResponse.setContentType("text/html; charset=UTF-8"); in login form
--------------------------------------------------------------------------

                 Key: GTNPORTAL-603
                 URL: https://jira.jboss.org/jira/browse/GTNPORTAL-603
             Project: GateIn Portal
          Issue Type: Feature Request
         Environment: Ubuntu linux,
Sun JDK 1.6,
GateIn portal from revision 1460 deployed on EAP 5.0.0.GA,
Apache/2.0.52 with mod_jk/1.2.28
            Reporter: Marek Posolda
         Attachments: login-page_apache-lb.png

I think that content type should be explicitly set in login.jsp or in class org.exoplatform.web.login.InitiateLoginServlet. Right now, almost all GateIn pages have correctly set HTTP header Content-Type in HTTP response. But this is not the case for page with login form. Header Content-Type is not set in HTTP response from this page.

This is not the issue if you are sending HTTP requests via your browser directly to GateIn portal, but can be the issue in some special cases. For example if Apache HTTPD is used as loadbalancer and cluster with GateIn portal servers is behind it. Apache HTTPD attaches header "Content-Type" in case that this header is not set from backend application. And by default it set the header to text/plain. Result is that I can see only HTML code in my browser in that case (see screenshot).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list