The new impersonation feature breaks simple authentication

Description

Re-enabled the standard uPortal login form in CLogin channel's html.xsl, while keeping the "Sign In with CAS" button. After re-deploying and restarting Tomcat, uPortal comes up, but authenticating directly to uPortal fails with NPE and this message:

ERROR [http-8080-Processor21] portal.LoginServlet.[] Sep/18 16:33:54 - Exception authenticating the request
java.lang.NullPointerException
at org.jasig.portal.security.provider.ChainingSecurityContext$ChainingPrincipal.<init>(ChainingSecurityContext.java:215)
at org.jasig.portal.security.provider.UnionSecurityContext.authenticate(UnionSecurityContext.java:39)
at org.jasig.portal.services.Authentication.authenticate(Authentication.java:83)
at org.jasig.portal.LoginServlet.service(LoginServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.jasig.portal.security.provider.ImpersonationFilter.doFilter(ImpersonationFilter.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at edu.yale.its.tp.cas.client.filter.StaticCasReceiptCacherFilter.doFilter(StaticCasReceiptCacherFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at edu.yale.its.tp.cas.client.filter.CASValidateFilter.doFilter(CASValidateFilter.java:337)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)

To work around this issue, comment out the impersonation security context from security.properties and the impersonation filter from web.xml.

Environment

Probably not applicable, but Windows XP SP3, JDK 1.6.0_06, Tomcat 5.5.26, and Firefox 3.0.1.

Activity

Show:
Adam Rybicki
September 19, 2008, 1:07 AM

This was a duplicate of UP-2166, which is already fixed.

PatrickM
July 28, 2014, 12:14 PM

In an such eating, a basis with problem might fail to eat the tribute on the left article of their value, dramatically though they complain of being indoor.
http://www.surveyanalytics.com//userimages/sub-2/2007589/3153260/29851520/7787433-29851520-stopadd9.html
Sheen was charged with bias menacing, not not as ingestion birth and supernatural adderall 5 mg duration.

Fixed

Assignee

Unassigned

Reporter

Adam Rybicki

Labels

None

Estimated End Date

None

Components

Fix versions

Affects versions

Priority

Blocker