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

Cannot deploy portlets to ROOT context

    XMLWordPrintableJSON

Details

    Description

      Deploying portlets to ROOT fails because of improper detection and handling of the "" context path.

      DefaultApplicationIdResolver#resolveApplicationId(ServletContext) returns "/hostName" for the root context instead of "", where "hostName" is the name of the host containing the context (typically "localhost"). The program will seem to work normally except when HttpServletRequest.getContextPath() is called such as by the JSTL url tag. That method would then return the incorrect value of "/hostName".

      Even when the context path is correctly detected as "", the portletId created by PortletWindowConfig#createPortletId(String, String, String) cannot by parsed by PortletWindowConfig#fromId(String) because the latter throws an exception if the id starts with ".".

      Attachments

        1. pluto_490.diff
          3 kB
          Steven Broadbridge
        2. pluto_rootContext.patch
          5 kB
          Eric Dalquist

        Activity

          People

            edalquist Eric Dalquist
            broadbr Steven Broadbridge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified