ICEfaces
  1. ICEfaces
  2. ICE-7991

Add ContextPreservingFilter to ICEFaces 1.8-p04 bundle

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03
    • Fix Version/s: EE-1.8.2.GA_P04
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Seam Application with EPS push

      Description

      The original case was after some time with a push application in Seam the link renderer would somehow manage to pull the underlying application name into the rendered link url. It turned out that the request objects were being held by seam filters, and they were being reused by the underlying server, and this caused the context path from subsequent requests to be available (incorrectly) to the link renderer via standard externalContext calls.

      The solution was to provide a filter that held the context-path from the original most request, and to NOT delegate calls to getContextPath to the underlying request object.

      This apparently works, but was provided as a Demo Patch only, and now it's time to include it into the product.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28631 Tue Apr 03 16:28:03 MDT 2012 greg.dick ICE-7991 added new context path preserving filter
        Files Changed
        Commit graph ADD /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ContextPathPreservingFilter.java
        Greg Dick created issue -
        Hide
        Greg Dick added a comment -

        This Filter should be enabled by adding the following to web.xml

        <filter>
        <filter-name>ContextPreservingFilter</filter-name>
        <filter-class>com.icesoft.faces.webapp.http.servlet.ContextPathPreservingFilter</filter-class>
        </filter>

        <filter-mapping>
        <filter-name>ContextPreservingFilter</filter-name>
        <url-pattern>/*</url-pattern>
        </filter-mapping>

        Show
        Greg Dick added a comment - This Filter should be enabled by adding the following to web.xml <filter> <filter-name>ContextPreservingFilter</filter-name> <filter-class>com.icesoft.faces.webapp.http.servlet.ContextPathPreservingFilter</filter-class> </filter> <filter-mapping> <filter-name>ContextPreservingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Assignee Priority P1
        Assignee Greg Dick [ greg.dick ]
        Hide
        Greg Dick added a comment -

        Class is checked in

        Show
        Greg Dick added a comment - Class is checked in
        Greg Dick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

          • Assignee:
            Greg Dick
            Reporter:
            Greg Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: