ICEfaces
  1. ICEfaces
  2. ICE-9529

Add ability to configure the base path of an application (was: Port ICE-7941 feature into ICEfaces 3.x codebase)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces
    • Assignee Priority:
      P1
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      We need to port ICE-7941 feature for configuring an external base path we have in 1.8 code into the 3.0 code so that customers can use reverse proxies or load balancers in their setup.

        Activity

        Mircea Toma created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Mircea Toma made changes -
        Fix Version/s 3.4 [ 10770 ]
        Mircea Toma made changes -
        Affects Version/s 3.3 [ 10370 ]
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000VHDVxAAP
        Mircea Toma made changes -
        Description We need to port the feature for configuring an external base path we have in 1.8 code into the 3.0 code so that customers can use reverse proxies or load balancers in their setup. We need to port ICE-7941 feature for configuring an external base path we have in 1.8 code into the 3.0 code so that customers can use reverse proxies or load balancers in their setup.
        Ken Fyten made changes -
        Fix Version/s EE-3.3.0.GA_P01 [ 11174 ]
        Ken Fyten made changes -
        Assignee Priority P1 [ 10010 ]
        Ken Fyten made changes -
        Summary Port ICE-7941 feature into ICEfaces 3.0 codebase Add ability to configure the base path of an application (was: Port ICE-7941 feature into ICEfaces 3.x codebase)
        Ken Fyten made changes -
        Affects Documentation (User Guide, Ref. Guide, etc.),Compatibility/Configuration [ 10003, 10002 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37498 Thu Aug 22 13:03:02 MDT 2013 mircea.toma ICE-9529 Introduced view handler that translates resource, action, bookmark and redirect paths into paths that have their context path changed so that reverse proxies do not need URL rewrite the served content.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/EnvUtils.java
        Commit graph ADD /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/ExternalServletContextSetup.java
        Hide
        Mircea Toma added a comment -

        Introduced view handler that translates resource, action, bookmark and redirect paths into paths that have their context path changed so that reverse proxies do not need URL rewrite the served content.

        Show
        Mircea Toma added a comment - Introduced view handler that translates resource, action, bookmark and redirect paths into paths that have their context path changed so that reverse proxies do not need URL rewrite the served content.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Mircea Toma added a comment -

        Add docs for context parameter.

        Show
        Mircea Toma added a comment - Add docs for context parameter.
        Mircea Toma made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Hide
        Mircea Toma added a comment -
        Show
        Mircea Toma added a comment - Added docs here: http://www.icesoft.org/wiki/display/ICE/publicContextPath
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Liana Munroe made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Liana Munroe made changes -
        Attachment ICE-9529.PNG [ 16404 ]
        Hide
        Mircea Toma added a comment -

        Please try to access the start page directly, specifically to avoid the redirection (not relevant to fix for the testing). So accessing the app using http://localhost:8080/bla/showcase.jsf should do the trick.

        Show
        Mircea Toma added a comment - Please try to access the start page directly, specifically to avoid the redirection (not relevant to fix for the testing). So accessing the app using http://localhost:8080/bla/showcase.jsf should do the trick.
        Mircea Toma made changes -
        Assignee Mircea Toma [ mircea.toma ] Liana Munroe [ liana.munroe ]
        Hide
        Carmen Cristurean added a comment -

        Verified with showcase app on tomcat7, and component-showcase on tomcat6.

        Testing steps (Tomcat7):

        • download/deploy j2ep-1.0.war onto tomcat7, with data.xml modified:

        <?xml version="1.0" encoding="UTF-8"?>
        <config>
        <server className="net.sf.j2ep.servers.BaseServer"
        domainName="localhost:8080" path="/showcase"
        isRewriting="false">
        <rule className="net.sf.j2ep.rules.DirectoryRule"
        directory="/bla"
        />
        </server>
        </config>

        • add to showcase's web.xml:
          <context-param>
          <param-name>org.icefaces.publicContextPath</param-name>
          <param-value> /j2ep-1.0/bla</param-value>
          </context-param>
        • add sessionCookiePath="/" attribute to Context tag in $tomcat/conf/context.xml:

        For tomcat6 (component-showcase app), an additional step is required:

        • add emptySessionPath="true" on the Connector tag in $tomcat/conf/server.xml file

        Note: data.xml content in j2ep-1.0 app must be updated for component-showcase.

        Show
        Carmen Cristurean added a comment - Verified with showcase app on tomcat7, and component-showcase on tomcat6. Testing steps (Tomcat7): download/deploy j2ep-1.0.war onto tomcat7, with data.xml modified: <?xml version="1.0" encoding="UTF-8"?> <config> <server className="net.sf.j2ep.servers.BaseServer" domainName="localhost:8080" path="/showcase" isRewriting="false"> <rule className="net.sf.j2ep.rules.DirectoryRule" directory="/bla" /> </server> </config> add to showcase's web.xml: <context-param> <param-name>org.icefaces.publicContextPath</param-name> <param-value> /j2ep-1.0/bla</param-value> </context-param> add sessionCookiePath="/" attribute to Context tag in $tomcat/conf/context.xml: use URL to access the start page directly: http://localhost:8080/j2ep-1.0/bla/showcase.jsf For tomcat6 (component-showcase app), an additional step is required: add emptySessionPath="true" on the Connector tag in $tomcat/conf/server.xml file Note: data.xml content in j2ep-1.0 app must be updated for component-showcase.
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Liana Munroe
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: