Jetspeed 2
  1. Jetspeed 2
  2. JS2-516

Make selection of last visited page in folder on folder request optional

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-FINAL, 2.1-dev
    • Fix Version/s: 2.1-dev, 2.1
    • Labels:
      None

      Description

      the following behavior exists (request => displayed page):

      1.) portal-name/portal/ => default-page.psml

      2.) portal-name/portal/mypage.psml => mypage.psml

      3.) portal-name/portal/ => mypage.psml

      In some cases it makes more sense to always point to default-page.psml
      instead of mypage.psml in step 3.

      Make this behavior optional via a Spring configuration.

        Activity

        Hide
        Randy Watler added a comment -

        This will be configurable in the Spring configuration as is other options for the Portal-Site component.

        Show
        Randy Watler added a comment - This will be configurable in the Spring configuration as is other options for the Portal-Site component.
        Hide
        Randy Watler added a comment -

        This issue has been resolved with the following spring configuration parameter, (index="4"), in the setup for ProfilerValveImpl, (webapps/jetspeed/WEB-INF/assembly/pipelines.xml):

        <bean id="profilerValve"
        class="org.apache.jetspeed.profiler.impl.ProfilerValveImpl"
        init-method="initialize"
        >
        <constructor-arg index="0">
        <ref bean="org.apache.jetspeed.profiler.Profiler" />
        </constructor-arg>
        <constructor-arg index="1">
        <ref bean="org.apache.jetspeed.portalsite.PortalSite" />
        </constructor-arg>
        <constructor-arg index="2">
        <ref bean="org.apache.jetspeed.page.PageManager" />
        </constructor-arg>
        <!--
        request fallback to root folder/page enabled by default;
        if set to false, requests generate HTTP 403/404 errors
        for access errors or missing pages
        -->
        <constructor-arg index="3"><value>true</value></constructor-arg>
        <!--
        use last visited page histories to select default page
        for folder navigational urls; if set to false, the
        default page specified in PSML, (or the first page in
        the folder), is always selected
        -->
        <constructor-arg index="4"><value>true</value></constructor-arg>
        </bean>

        Set this new parameter to "false" to suppress use of the folder page history in the Portal Site component.

        Show
        Randy Watler added a comment - This issue has been resolved with the following spring configuration parameter, (index="4"), in the setup for ProfilerValveImpl, (webapps/jetspeed/WEB-INF/assembly/pipelines.xml): <bean id="profilerValve" class="org.apache.jetspeed.profiler.impl.ProfilerValveImpl" init-method="initialize" > <constructor-arg index="0"> <ref bean="org.apache.jetspeed.profiler.Profiler" /> </constructor-arg> <constructor-arg index="1"> <ref bean="org.apache.jetspeed.portalsite.PortalSite" /> </constructor-arg> <constructor-arg index="2"> <ref bean="org.apache.jetspeed.page.PageManager" /> </constructor-arg> <!-- request fallback to root folder/page enabled by default; if set to false, requests generate HTTP 403/404 errors for access errors or missing pages --> <constructor-arg index="3"><value>true</value></constructor-arg> <!-- use last visited page histories to select default page for folder navigational urls; if set to false, the default page specified in PSML, (or the first page in the folder), is always selected --> <constructor-arg index="4"><value>true</value></constructor-arg> </bean> Set this new parameter to "false" to suppress use of the folder page history in the Portal Site component.
        Hide
        Ate Douma added a comment -

        Closed again now properly recorded against Fix Version 2.1 as well

        Show
        Ate Douma added a comment - Closed again now properly recorded against Fix Version 2.1 as well

          People

          • Assignee:
            Randy Watler
            Reporter:
            Joachim Müller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development