Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-10860

ToolManager.getCurrentPlacement() is null for portfolio sites in osp-portal

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 2.5.0
    • Labels:
      None
    • Environment:
      Nightly2 build of OSP

      Description

      A stack trace is thrown when accessing a portfolio site that contains the "Wizards tool" via the osp-portal on nightly2.

      WARN: Bug Report user: admin usage-session: 69a64bdf-f3c6-4d11-808a-3175ab1eea7a time: Jul 23, 2007 13:46:39 user comment: null stack trace
      java.lang.NullPointerException
      at org.theospi.portfolio.security.impl.sakai.WorksiteAwareAuthorizationFacade.getAgentRoles(WorksiteAwareAuthorizationFacade.java:169)
      at org.theospi.portfolio.security.impl.sakai.WorksiteAwareAuthorizationFacade.getAuthorization(WorksiteAwareAuthorizationFacade.java:88)
      at org.theospi.portfolio.security.impl.sakai.WorksiteAwareAuthorizationFacade.getAuthorization(WorksiteAwareAuthorizationFacade.java:105)
      at org.theospi.portfolio.security.impl.simple.SimpleAuthorizationFacade.isAuthorized(SimpleAuthorizationFacade.java:176)
      at org.theospi.portfolio.wizard.WizardAuthorizerImpl.isWizardViewAuth(WizardAuthorizerImpl.java:228)
      at org.theospi.portfolio.wizard.WizardAuthorizerImpl.isAuthorized(WizardAuthorizerImpl.java:75)
      at org.theospi.portfolio.security.app.AuthorizationFacadeImpl.isAuthorized(AuthorizationFacadeImpl.java:131)
      at org.theospi.portfolio.security.app.AuthorizationFacadeImpl.isAuthorized(AuthorizationFacadeImpl.java:76)
      at sun.reflect.GeneratedMethodAccessor529.invoke(null:-1)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy6.isAuthorized(null:-1)
      at org.theospi.portfolio.portal.impl.PortalManagerImpl.hasAccess(PortalManagerImpl.java:433)
      at org.theospi.portfolio.portal.impl.PortalManagerImpl.findCategories(PortalManagerImpl.java:393)
      at org.theospi.portfolio.portal.impl.PortalManagerImpl.categorizePage(PortalManagerImpl.java:357)
      at org.theospi.portfolio.portal.impl.PortalManagerImpl.categorizePages(PortalManagerImpl.java:333)
      at org.theospi.portfolio.portal.impl.PortalManagerImpl.getPagesByCategory(PortalManagerImpl.java:303)
      at sun.reflect.GeneratedMethodAccessor585.invoke(null:-1)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy17.getPagesByCategory(null:-1)
      at org.theospi.portfolio.portal.web.XsltPortal.createPortalDocument(XsltPortal.java:428)
      at org.theospi.portfolio.portal.web.XsltPortal.doSite(XsltPortal.java:348)
      at org.sakaiproject.portal.charon.CharonPortal.doGet(CharonPortal.java:512)
      at org.theospi.portfolio.portal.web.XsltPortal.doGet(XsltPortal.java:167)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      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.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:592)
      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:210)
      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:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      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:685)
      at java.lang.Thread.run(Thread.java:595)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:UTF-8
      : ContentLength:-1
      : ContentType:null
      : ContextPath:/osp-portal
      : LocalAddress:134.68.220.49
      : LocalName:sakai-sand.uits.iupui.edu
      : LocalPort:8084
      : Mehthod:GET
      : PathInfo:/site/8331a35e-7427-4a5d-803f-46aecb97c958
      : Protocol:HTTP/1.1
      : QueryString:null
      : RemoteAddress:128.230.102.212
      : RemoteHost:128.230.102.212
      : RemotePort:49414
      : RemoteUser:admin
      : RequestedSession:129a4c1e-035e-4282-808c-5e15b1daa94d.sakai-sand.uits.iupui.edu
      : Requested URL:http://nightly2.sakaiproject.org:8084/osp-portal/site/8331a35e-7427-4a5d-803f-46aecb97c958
      : Scheme:http
      : ServerName:nightly2.sakaiproject.org
      : Headers:
      : Header:host:nightly2.sakaiproject.org:8084
      : Header:user-agent:Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
      : Header:accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
      : Header:accept-language:en-us,en;q=0.5
      : Header:accept-encoding:gzip,deflate
      : Header:accept-charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7
      : Header:keep-alive:300
      : Header:connection:keep-alive
      : Header:referer:http://nightly2.sakaiproject.org:8084/osp-portal/site_type_helper/org.theospi.portfolio.portal.portfolio
      : Header:cookie:JSESSIONID=129a4c1e-035e-4282-808c-5e15b1daa94d.sakai-sand.uits.iupui.edu
      : Parameters:
      : Attributes:
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@808a4fd6
      : Attribute:sakai.character.encoding.done:sakai.character.encoding.done
      : Attribute:sakai.filtered:sakai.filtered
      Session:
      : Created:1185212569833
      : LastAccess:1185212799532
      : MaxInactive:1800
      : Attributes:
      (2007-07-23 13:46:39,535 http-8084-Processor22_org.sakaiproject.portal.util.ErrorReporter)
      WARN: send: javax.mail.internet.AddressException: Illegal address in string ``'' (2007-07-23 13:46:39,535 http-8084-Processor22_org.sakaiproject.email.impl.BasicEmailService)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  smkeesle Sean Keesler (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code