Jetspeed 2
  1. Jetspeed 2
  2. JS2-1102

Access for view not permitted error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows Server 2003 R3

      Description

      I used the spaces manager to create a new space. Then I created four new subfolders using the Portal Site Manager portlet. First issue: the new subfolders did not show until I logged off and logged back in. Second issue: the subfolders were not been created under the new space that was selected. Third issue: I was using the Portal Site Manager to move the folders under the new space I created when the error below occurred. The only way I could resolve the error was redeploying the portal. Restarting tomcat did not resolve.

      08.02.2010 12:43:40 ERROR [org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke():317] SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.
      java.lang.SecurityException: SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.
      at org.apache.jetspeed.om.page.psml.SecurityConstraintsImpl.checkConstraints(SecurityConstraintsImpl.java:227)
      at org.apache.jetspeed.page.document.psml.AbstractNode.checkConstraints(AbstractNode.java:424)
      at org.apache.jetspeed.om.page.psml.AbstractBaseElement.checkConstraints(AbstractBaseElement.java:313)
      at org.apache.jetspeed.om.page.psml.AbstractBaseElement.checkAccess(AbstractBaseElement.java:506)
      at org.apache.jetspeed.page.psml.CastorXmlPageManager.getFolder(CastorXmlPageManager.java:830)
      at org.apache.jetspeed.portalsite.view.SiteView.getRootFolderProxy(SiteView.java:656)
      at org.apache.jetspeed.portalsite.view.SiteView.getNodeProxy(SiteView.java:728)
      at org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl.selectRequestPage(PortalSiteSessionContextImpl.java:605)
      at org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl.selectRequestPage(PortalSiteSessionContextImpl.java:396)
      at org.apache.jetspeed.portalsite.impl.PortalSiteRequestContextImpl.getPage(PortalSiteRequestContextImpl.java:326)
      at org.apache.jetspeed.portalsite.impl.PortalSiteRequestContextImpl.getManagedPage(PortalSiteRequestContextImpl.java:248)
      at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:264)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:158)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:151)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
      at org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
      at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:88)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:242)
      at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:163)
      at org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:225)
      at org.apache.jetspeed.engine.JetspeedServlet.invoke(JetspeedServlet.java:300)
      at org.apache.jetspeed.engine.JetspeedServlet.service(JetspeedServlet.java:318)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)

        Activity

        Hide
        Woonsan Ko added a comment -

        The followings are fixed:

        • new subfolders created by portal site manager do not appear in page navigator.
          (By the way, you should add a page at least to a folder to display the folder in the page navigator.)
        • various problems during moving/copying folders.
        • the copying/moving changes on folders are not reflected even when the folder re-expanded.
          (If you collapse/expand the source/target folders again, the folders will be refreshed.
          Because the current implementation reloads a folder's children on-demand, it seems difficult to have it refresh automatically without user's action.)
        • Additionally, when adding node (folder | page | link) in the page navigator, it is now created under the current selected folder of the space.
        Show
        Woonsan Ko added a comment - The followings are fixed: new subfolders created by portal site manager do not appear in page navigator. (By the way, you should add a page at least to a folder to display the folder in the page navigator.) various problems during moving/copying folders. the copying/moving changes on folders are not reflected even when the folder re-expanded. (If you collapse/expand the source/target folders again, the folders will be refreshed. Because the current implementation reloads a folder's children on-demand, it seems difficult to have it refresh automatically without user's action.) Additionally, when adding node (folder | page | link) in the page navigator, it is now created under the current selected folder of the space.
        Hide
        David Sean Taylor added a comment -

        I walked thru the use case in the description, and reproduced two of the bugs:

        1. After creating subfolders in the Site Manager, the new subfolders
        do not show up in Page Navigator until logging off and back on
        2. I used the Site Manager to move one of the 4 subfolders created
        into the /development space. Im not sure what happened, but the Site
        Manager gets lost.
        If I navigate away and then return, it recovers its state

        Show
        David Sean Taylor added a comment - I walked thru the use case in the description, and reproduced two of the bugs: 1. After creating subfolders in the Site Manager, the new subfolders do not show up in Page Navigator until logging off and back on 2. I used the Site Manager to move one of the 4 subfolders created into the /development space. Im not sure what happened, but the Site Manager gets lost. If I navigate away and then return, it recovers its state
        Hide
        David Sean Taylor added a comment -

        I think we now have all of these issues addressed. We have been improving the Page and Space navigators quite a lot in last weeks. Problem I am still seeing:

        • Site Manager gets lost sometimes, have to refresh to get it back
        • Site Manager doesn't always show all operations

        I am going to leave this issue open until we can look closer at the Site Manager and try to improve the behavior for upcoming 2.2.1 release

        Show
        David Sean Taylor added a comment - I think we now have all of these issues addressed. We have been improving the Page and Space navigators quite a lot in last weeks. Problem I am still seeing: Site Manager gets lost sometimes, have to refresh to get it back Site Manager doesn't always show all operations I am going to leave this issue open until we can look closer at the Site Manager and try to improve the behavior for upcoming 2.2.1 release

          People

          • Assignee:
            Woonsan Ko
            Reporter:
            Sandi Dahl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development