Pluto
  1. Pluto
  2. PLUTO-384

PortletContextManager.getPortletApplicationDescriptor returns null when a portlet context cannot be found.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.3, 1.2.0
    • Fix Version/s: 1.1.4, 1.2.0
    • Component/s: portlet container
    • Labels:
      None

      Description

      PortletContextManager (which is the implementation of PortletRegistryService) returns null when a portlet context cannot be found:

      public PortletAppDD getPortletApplicationDescriptor(String applicationId) throws PortletContainerException {
      InternalPortletContext ipc = (InternalPortletContext) portletContexts.get(applicationId);
      if (ipc != null)

      { return ipc.getPortletApplicationDefinition(); }

      LOG.warn("Unable to retrieve portlet application descriptor: '"applicationId"'");
      return null;
      }

      According to the PortletRegistryService interface, a PortletContainerException should be thrown if the descriptor can not be found or if the portlet.xml can not be parsed.

        Activity

        Elliot Metsger created issue -
        esm committed 552355 (1 file)
        Reviews: none

        [PLUTO-384]: PortletContextManager now throws a portletcontainerexception when a portlet context cannot be found in the registry (per the interface spec)

        esm committed 552356 (1 file)
        Reviews: none

        [PLUTO-384]: PortletContextManager now throws a portletcontainerexception when a portlet context cannot be found in the registry (per the interface spec) (trunk)

        Hide
        Elliot Metsger added a comment -

        A PortletContainerException is now thrown when a application id (context) cannot be found.

        Show
        Elliot Metsger added a comment - A PortletContainerException is now thrown when a application id (context) cannot be found.
        Elliot Metsger made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12407108 ] Default workflow, editable Closed status [ 12564777 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12564777 ] jira [ 12586260 ]

          People

          • Assignee:
            Elliot Metsger
            Reporter:
            Elliot Metsger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development