Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-2432

PortletRequestDispatcher does not execute 'forward' method during resource request.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Portal Core
    • Labels:
      None

      Description

      By default, GenericFacesPortlet uses PortletRequestDispatcher.forward method to serve resources during resource requests. The code is:
      /**

      • Default resource serving.
      • <p>
      • The default implemention of this method is to call a
      • RequestDispatcher.foward with the ResourceID of the ResourceRequest.
      • <p>
      • If no ResourceID is set on the resource URL the default implementation
      • does nothing.
      • @since 2.0
        */
        public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException
        Unknown macro: { if (request.getResourceID() != null) { PortletRequestDispatcher rd = getPortletConfig().getPortletContext().getRequestDispatcher( request.getResourceID()); if (rd != null) rd.forward(request, response); } }

        Never that code nor custom portletBridge code that uses 'forward' method doesn't work in Jboss Portal but works properly in other Portlet 2.0 implementations.
        The same PortletRequestDispatcher.forward method works properly during render request.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  alexsmirnov Alexander Smirnov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: