Hi All!
I'm using Integration of JBoss Portal 2.7 with CAS
(http://docs.jboss.org/jbportal/sso/eclipse/portal_cas.html).
Jboss Connector has UTF-8 UriEncoding
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="true" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8" />
cas-server-webapp has WEB-INF/web.xml with
<filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
User Credentails (login and password) come to cas server in UTF-8
encoding.
After successfull authorization case redirects to input request ().
Further jboss returns it's own jsp-page with input elements.
Page has
<%@ page contentType="text/html; charset=UTF-8" %>
and
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
But then user posts data on Jboss request encoding is damaged (not utf-8). So
data becomes invalid.
How avoid brokening encoding with CAS with JBOSS?
Thanks.
Cheers,
Roman
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev