Yup, We have tested here that Sunder's solution works. So is this change
going into the trunk?

Regards,
jack

Scott Battaglia wrote:
> That's weird that it isn't set automatically. The container should be
> setting that I would have thought. I wonder why it isn't.
>
> -Scott
>
> -Scott Battaglia
> PGP Public Key Id: 0x383733AA
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
> On Wed, Oct 1, 2008 at 1:49 AM, Sunder Singh Negi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>     Hi Scott,
>
>     I solved the problem.
>
>     I changed the CAS client 3.1.3 source code.
>
>     I modified
>     public final class SingleSignOutFilter extends
>     AbstractConfigurationFilter {
>     ...
>     public void doFilter(final ServletRequest servletRequest, final
>     ServletResponse servletResponse,
>     final FilterChain filterChain) throws IOException, ServletException {
>
>     final HttpServletRequest request = (HttpServletRequest)
>     servletRequest;
>     if ("POST".equals(request.getMethod())) {
>     ...
>     }
>     ...
>     }
>
>     to
>
>     public final class SingleSignOutFilter extends
>     AbstractConfigurationFilter {
>     ...
>     public void doFilter(final ServletRequest servletRequest, final
>     ServletResponse servletResponse,
>     final FilterChain filterChain) throws IOException, ServletException {
>     final HttpServletRequest request = (HttpServletRequest)
>     servletRequest;
>     request.setCharacterEncoding("UTF-8");
>     if ("POST".equals(request.getMethod())) {
>     ...
>     }
>     ...
>     }
>
>     This solved my problem.
>
>     Thanks & Regards,
>
>     Sunder Singh Negi
>
>     scott_battaglia wrote:
>     >
>     > As far as I know the CAS 3.1.3 client doesn't do anything with
>     encoding
>     > but
>     > I could be wrong. But we don't explicitly set any encoding
>     parameters. I
>     > can't test it as we only have English pages here :-)
>     >
>     > -Scott
>     >
>     > -Scott Battaglia
>     > PGP Public Key Id: 0x383733AA
>     > LinkedIn: http://www.linkedin.com/in/scottbattaglia
>     >
>     >
>     > On Wed, Sep 17, 2008 at 6:20 AM, <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     >
>     >> Hi All,
>     >>
>     >> I have a setup having tomcat 5.5.26 and alfresco 2.1 CE
>     deployed over it.
>     >> I have casified Alfresco using CAS server 3.2.1 and cas client
>     3.1.3. <http://3.1.3.>
>     >>
>     >> Now when i upload a file with Japanese title (ex. 新しい) then
>     the title
>     >> that
>     >> is getting
>     >> stored into the database if some junk. And the same junk is
>     showing up.
>     >>
>     >> However Yale cas cleint 2.1.1 works nicely.
>     >>
>     >> Am i missing some thing?
>     >>
>     >> My cas filter configurations are
>     >> <!-- For cas client 2.1.1 -->
>     >> <filter>
>     >> <filter-name>CAS Filter</filter-name>
>     >>
>     >>
>     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
>     >> <init-param>
>     >>
>     >> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
>     >> <param-value>https://localhost:8443/cas/login</param-value>
>     >> </init-param>
>     >> <init-param>
>     >>
>     >>
>     <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
>     >> <param-value>https://localhost:8443/cas/serviceValidate
>     >> </param-value>
>     >> </init-param>
>     >> <init-param>
>     >>
>     >>
>     <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
>     >> <param-value>true</param-value>
>     >> </init-param>
>     >> <init-param>
>     >>
>     >>
>     <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
>     >> <param-value>localhost:8080</param-value>
>     >> </init-param>
>     >> </filter>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >>
>     >>
>     >> <!-- For CAS Client 3.1.3 -->
>     >> <context-param>
>     >> <param-name>serverName</param-name>
>     >> <param-value>http://localhost:8080</param-value>
>     >> </context-param>
>     >>
>     >> <filter>
>     >> <filter-name>CAS Single Sign Out Filter</filter-name>
>     >>
>     >>
>     
> <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
>     >> </filter>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS Single Sign Out Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >> <listener>
>     >>
>     >>
>     >>
>     
> <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
>     >> </listener>
>     >> <filter>
>     >> <filter-name>CAS Authentication Filter</filter-name>
>     >>
>     >>
>     >>
>     
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>     >> <init-param>
>     >> <param-name>casServerLoginUrl</param-name>
>     >> <param-value>https://localhost:8443/cas/login</param-value>
>     >> </init-param>
>     >> </filter>
>     >>
>     >> <filter>
>     >> <filter-name>CAS Validation Filter</filter-name>
>     >>
>     >>
>     >>
>     
> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
>     >> <init-param>
>     >> <param-name>casServerUrlPrefix</param-name>
>     >> <param-value>https://localhost:8443/cas</param-value>
>     >> </init-param>
>     >> </filter>
>     >>
>     >>
>     >> <filter>
>     >> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>     >>
>     >>
>     >>
>     
> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
>     >> </filter>
>     >>
>     >>
>     >> <filter>
>     >> <filter-name>CAS Assertion Thread Local Filter</filter-name>
>     >>
>     >>
>     >>
>     
> <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
>     >> </filter>
>     >>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS Authentication Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS Validation Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >> <filter-mapping>
>     >> <filter-name>CAS Assertion Thread Local
>     >> Filter</filter-name>
>     >> <url-pattern>/*</url-pattern>
>     >> </filter-mapping>
>     >>
>     >>
>     >>
>     >>
>     >> Please help.
>     >>
>     >> Thanks
>     >> Sunder Singh Negi
>     >>
>     >>
>     >>
>     >> _______________________________________________
>     >> Yale CAS mailing list
>     >> [email protected] <mailto:[email protected]>
>     >> http://tp.its.yale.edu/mailman/listinfo/cas
>     >>
>     >
>     > _______________________________________________
>     > Yale CAS mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://tp.its.yale.edu/mailman/listinfo/cas
>     >
>     >
>
>     --
>     View this message in context:
>     
> http://www.nabble.com/Cas-Client-3.1.3-and-Unicode-support-tp19529228p19754825.html
>     Sent from the CAS Users mailing list archive at Nabble.com.
>
>     _______________________________________________
>     Yale CAS mailing list
>     [email protected] <mailto:[email protected]>
>     http://tp.its.yale.edu/mailman/listinfo/cas
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>   

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to