Jetspeed 2
  1. Jetspeed 2
  2. JS2-506

Extend profiler to fallback to parent folders when requested path is not available.

    Details

      Description

      It would be helpful to have the profiler fallback to the parent folder of the requested path if it is no longer accessible.

      Ex:

      A user navigates to /a/b/c/123.psml. The user logs in and is redirected back to to /a/b/c/123.psml. However, the logged in user no longer has access to /a/b/c/123.psml. In the current 2.0-FINAL, an exception would be thrown ("org.apache.jetspeed.page.document.NodeNotFoundException: No page matched / request in site view."). Ideally, the profiler would try to fallback to the parent nodes (and its parents if necessary) default page. So it would try /a/b/c, then /a/b, etc.

        Activity

        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
        Hide
        Randy Watler added a comment -

        This has been implemented in the portal-site component as per request.

        Additionally, historical pages per folder are reset in the fallback folders to make the default behavior more predictable in this case. Note: all fallback can be disabled in the Spring configuration for the profiler valve, (assembly/pipelines.xml).

        Show
        Randy Watler added a comment - This has been implemented in the portal-site component as per request. Additionally, historical pages per folder are reset in the fallback folders to make the default behavior more predictable in this case. Note: all fallback can be disabled in the Spring configuration for the profiler valve, (assembly/pipelines.xml).
        Hide
        Randy Watler added a comment -

        This is a simple extension of the fallback already in place in the ProfilerValveImpl. Note that this is not a true profiling issue, but rather a consequence of using the security constraints/preferences instead of a profiler approach. It is problematic becasue this user does not have a reaonable default page in the root folder. Note that by falling back to more specific pages, the proposed algorithm should produce a better result in all cases, even when the profiler is engaged.

        Show
        Randy Watler added a comment - This is a simple extension of the fallback already in place in the ProfilerValveImpl. Note that this is not a true profiling issue, but rather a consequence of using the security constraints/preferences instead of a profiler approach. It is problematic becasue this user does not have a reaonable default page in the root folder. Note that by falling back to more specific pages, the proposed algorithm should produce a better result in all cases, even when the profiler is engaged.

          People

          • Assignee:
            Randy Watler
            Reporter:
            Ethan Adams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development