Here is a simple patch for a problem I was having trying to authenticate with Jameleon using CAS.  For some reason Jameleon was stripping one of the / in the protocol part of my full service URL.  So I added URLEncoder to the service parameter of CasProcessingFilterEntryPoint and it appeared to fix my problem.  Here is my simple patch below.

 

Mike

 

-------------------------------Begin Patch-------------------------------

 

Index: src/net/sf/acegisecurity/ui/cas/CasProcessingFilterEntryPoint.java

===================================================================

RCS file: /cvsroot/acegisecurity/acegisecurity/src/net/sf/acegisecurity/ui/cas/CasProcessingFilterEntryPoint.java,v

retrieving revision 1.1

diff -u -r1.1 CasProcessingFilterEntryPoint.java

--- src/net/sf/acegisecurity/ui/cas/CasProcessingFilterEntryPoint.java     19 Apr 2004 07:34:22 -0000   1.1

+++ src/net/sf/acegisecurity/ui/cas/CasProcessingFilterEntryPoint.java   16 Jun 2004 22:16:23 -0000

@@ -20,6 +20,7 @@

 import org.springframework.beans.factory.InitializingBean;

 

 import java.io.IOException;

+import java.net.URLEncoder;

 

 import javax.servlet.ServletException;

 import javax.servlet.ServletRequest;

@@ -94,7 +95,7 @@

             url = "" + "?renew=true" + "&service="

                 + serviceProperties.getService();

         } else {

-            url = "" + "?service=" + serviceProperties.getService();

+            url = "" + "?service=" + URLEncoder.encode(serviceProperties.getService(), "UTF-8");

         }

 

         ((HttpServletResponse) response).sendRedirect(url);

Reply via email to