Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-593

Will not load portlets deployed in root servlet context

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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
        edalquist Eric Dalquist added a comment -

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

        Show
        edalquist Eric Dalquist added a comment - Fixed by not removing / from the context path when generating the application name.
        Hide
        adouma 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
        adouma 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
        adouma Ate Douma added a comment -

        Fix applied

        Show
        adouma Ate Douma added a comment - Fix applied

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development