[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1958) Cannot map the same filter on 2 different portlets (if declared separately)

Thomas Heute (JIRA) jira-events at lists.jboss.org
Tue Mar 18 12:27:51 EDT 2008


Cannot map the same filter on 2 different portlets (if declared separately)
---------------------------------------------------------------------------

                 Key: JBPORTAL-1958
                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1958
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Portal Portlet
    Affects Versions: Portlet-2.0
            Reporter: Thomas Heute
         Assigned To: Julien Viet


If you write:
   <filter-mapping>
      <filter-name>JBoss Portlet Filter</filter-name>
      <portlet-name>CMSPortlet</portlet-name>
   </filter-mapping>

   <filter-mapping>
      <filter-name>JBoss Portlet Filter</filter-name>
      <portlet-name>CMSAdminPortlet</portlet-name>
   </filter-mapping>

On parsing, the second declaration overrides the first (because it ias associated to a map where filter-name is the key)
See: /module-portlet/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication20MetaData.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list