Ticket #548 (closed defect: fixed)

Opened 1 year ago

Last modified 5 months ago

Proxy tickets cause search to fail temporarily.

Reported by: amit Assigned to: pradeep
Priority: high Milestone:
Component: ambra Version: 0.8
Keywords: search proxy-tickets Cc:
Blocking: Blocked By:

Description

While doing a simple search, I got the 'site error' page with the following exception in the log:

2007-08-15 00:54:54,555 ERROR SearchAction(PLoSONE)> Search failed with error with query string: Mycobacteria [http-8080-Processor23 org.plos.search.action.SearchAction]
org.plos.ApplicationException: Search failed with exception:
    at org.plos.search.service.SearchService.find(SearchService.java:75)
    at org.plos.search.service.SearchService$$FastClassByCGLIB$$a07bbe52.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:695)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630)
    at org.plos.search.service.SearchService$$EnhancerByCGLIB$$194418da.find(<generated>)
    at org.plos.search.action.SearchAction.executeSearch(SearchAction.java:66)
    at org.plos.search.action.SearchAction.executeSimpleSearch(SearchAction.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
Caused by: org.plos.service.InvalidProxyTicketException: org.topazproject.authentication.CASProtectedService$NoProxyTicketException: No proxy ticket: PGT may have expired.
    at org.plos.service.BaseConfigurableService.ensureInitGetsCalledWithUsersSessionAttributes(BaseConfigurableService.java:141)
    at org.plos.search.service.SearchWebService.find(SearchWebService.java:50)
    at org.plos.search.service.SearchWebService$$FastClassByCGLIB$$b1caf404.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:695)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630)
    at org.plos.search.service.SearchWebService$$EnhancerByCGLIB$$7e5a990c.find(<generated>)
    at org.plos.search.service.Results$HitIterator.hasNext(Results.java:135)
    ... 151 more
Caused by: org.topazproject.authentication.CASProtectedService$NoProxyTicketException: No proxy ticket: PGT may have expired.
    at org.topazproject.authentication.CASProtectedService.getCASTicket(CASProtectedService.java:162)
    at org.topazproject.authentication.CASProtectedService.buildServiceUri(CASProtectedService.java:117)
    at org.topazproject.authentication.CASProtectedService.<init>(CASProtectedService.java:62)
    at org.topazproject.authentication.ProtectedServiceFactory.createService(ProtectedServiceFactory.java:55)
    at org.plos.service.BaseConfigurableService.createProtectedService(BaseConfigurableService.java:72)
    at org.plos.service.BaseConfigurableService.getProtectedService(BaseConfigurableService.java:151)
    at org.plos.search.service.SearchWebService.init(SearchWebService.java:40)
    at org.plos.service.BaseConfigurableService.ensureInitGetsCalledWithUsersSessionAttributes(BaseConfigurableService.java:138)
    ... 162 more

Dependency Graph

Change History

08/15/07 10:10:44 changed by pradeep

Note that this failure occurs only when all three of the following conditions are satisfied:

  • DummySSOFilter is enabled (or CAS Proxy auth is misconfigured)
  • User is logged in
  • This is the first search that the user made with this HttpSession?

08/15/07 10:15:35 changed by pradeep

  • status changed from new to closed.
  • resolution set to fixed.

(In [3468]) Disable CAS proxy-authentication for search. Fixes #548.

(Note: Keeping the BaseConfigurableService? around for a bit longer - till search is also converted)

07/16/08 11:00:34 changed by

  • milestone deleted.

Milestone 0.8 deleted