You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2014/08/27 21:11:58 UTC

[jira] [Closed] (TAP5-1902) Production Mode and AJP together changes URL behavior

     [ https://issues.apache.org/jira/browse/TAP5-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1902.
--------------------------------------

    Resolution: Invalid

Not sure what "AJP" is.  I suspect the solution to your problem is related to BaseURLSource, which is designed to be configured or overridden to deal with reverse firewall issues.

> Production Mode and AJP together changes URL behavior
> -----------------------------------------------------
>
>                 Key: TAP5-1902
>                 URL: https://issues.apache.org/jira/browse/TAP5-1902
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Richard Frovarp
>
> With the production mode set to true, and the application being proxied to via AJP, URLs become fully qualified. When production mode is turned off, but still proxied via AJP, the URLs aren't qualified. With production mode on or off, HTTP proxies or direct calls to Jetty / Tomcat result in URLs that aren't qualified. These URLs are generated by Tapestry and extend to form POST URLs.
> Examples:
> Production mode on, proxy to Tomcat via AJP for the project generated by the quickstart archetype:
> <div class="menu">
>   <ul>
>     <li class="current_page_item">
>       <a href="http://myhost/url-test/">Index</a>
>     </li>
>     <li>
>       <a href="http://myhost/url-test/about">About</a>
>     </li>
>     <li>
>       <a href="http://myhost/url-test/contact">Contact</a>
>     </li>
>   </ul>
> </div>
> Turn production mode off in Tomcat or use mvn jetty:run the same code generates this HTML:
> <div class="menu">
>   <ul>
>     <li class="current_page_item">
>       <a href="/url-test/">Index</a>
>     </li>
>     <li>
>       <a href="/url-test/about">About</a>
>     </li>
>     <li>
>       <a href="/url-test/contact">Contact</a>
>     </li>
>   </ul>
> </div>



--
This message was sent by Atlassian JIRA
(v6.2#6252)