Julien Herfurth wrote:

Hello,

I've made a simple setup with Acegi security and CAS. When I try to access a secured object
(in my case a method of a dao), the browser is redirected to the cas login page as expected, but
when the browser is redireted back to


https://localhost:8443/sample/j_acegi_cas_security_check?ticket=blahblahblah,


I get this error :

15:41:08.393 WARN!! Exception for /sample/j_acegi_cas_security_check?ticket=ST-0-fvOFl0bCOjCZNuz4CPeO
java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor
at net.sf.acegisecurity.providers.cas.CasAuthenticationToken.<init>(CasAuthenticationToken.java:70)


at net.sf.acegisecurity.providers.cas.CasAuthenticationProvider.authenticateNow(CasAuthenticationProvider.java:226)

at net.sf.acegisecurity.providers.cas.CasAuthenticationProvider.authenticate(CasAuthenticationProvider.java:181)

at net.sf.acegisecurity.providers.ProviderManager.authenticate(ProviderManager.java:126)

at net.sf.acegisecurity.ui.cas.CasProcessingFilter.attemptAuthentication(CasProcessingFilter.java:108)

at net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:215)

at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:88)

at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)


at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)


It seems that there are missing parameters when the CasAuthenticationProvider tries to instantiate a new
CasAuthenticationToken. Is it something someone already see ? Does anyone have a quick hint about that ?


Thanks,

Julien

In the call to CasAuthenticationToken.authenticateNow(), the proxyList and the proxyGrantingTicketIou
parameters of the CasAuthenticationToken constructor are empty. This raise the IllegalArgumentException,
but usage of proxy is optionnal ... Is this a bug or I am missing something ?


Thanks,

Julien


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to