Pluto
  1. Pluto
  2. PLUTO-593

Will not load portlets deployed in root servlet context

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2, 2.1.0
    • Component/s: portal driver
    • Labels:
      None

      Description

      Pluto does contextPath.substring(1) on the value returned by ServletContext.getContextPath() Per the Servlet spec that method will return an empty string if the servlet is deployed in the root context, this will result in an IndexOutOfBounds exception.

      The proposed fix is to not remove the leading /.

        Activity

        Hide
        Ate Douma added a comment -

        Fix applied

        Show
        Ate Douma added a comment - Fix applied
        Hide
        Ate Douma added a comment -

        o.a.p.pluto-portal-driver-impl.EventProviderImpl.isDeclaredAsPublishingEvent method is still stripping leading '/' from the context path to determine the application name, causing event handling to fail.

        Show
        Ate Douma added a comment - o.a.p.pluto-portal-driver-impl.EventProviderImpl.isDeclaredAsPublishingEvent method is still stripping leading '/' from the context path to determine the application name, causing event handling to fail.
        Hide
        Eric Dalquist added a comment -

        Fixed by not removing / from the context path when generating the application name.

        Show
        Eric Dalquist added a comment - Fixed by not removing / from the context path when generating the application name.

          People

          • Assignee:
            Ate Douma
            Reporter:
            Eric Dalquist
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development