You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Korbinian Bachl (JIRA)" <ji...@apache.org> on 2006/11/11 17:19:37 UTC
[jira] Created: (WICKET-42) mount and IndexedParamUrlCodingStrategy
severe malfunctions
mount and IndexedParamUrlCodingStrategy severe malfunctions
-----------------------------------------------------------
Key: WICKET-42
URL: http://issues.apache.org/jira/browse/WICKET-42
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 2.0
Environment: Sun Java System Application Server 9.0
Reporter: Korbinian Bachl
Priority: Critical
Filter is set up this way:
<filter>
<filter-name>Name</filter-name>
<filter-class>wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>de.shop.Application</param-value>
</init-param>
<init-param>
<param-name>configuration</param-name>
<param-value>development</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Name</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Application.java is:
public void init()
{
mount(new IndexedParamUrlCodingStrategy("/Index",Index.class));
}
public Class getHomePage() {
return Index.class;
}
when this is first deployed, all is OK and working as expected: e.g: accessing 127.0.0.1/ -> Index page loads
if reDeploying it wont load anymore, no errors are issued however.
If youre on 127.0.0.1/Index (index-page mounted) and then redeploy and klick on any link or reload the page, the path changes to 127.0.0.1/Index/Index
if params are already issued it changes from 127.0.0.1/Index/param0/param1 to 127.0.0.1/Index/param0/param1/Index
doing it another time ends up in 127.0.0.1/Index/param0/param1/Index/param0/param1/Index etc.
links are BookMarkablePageLinks e.g:
new BookmarkablePageLink(this,"linkTo",link.getLinkTarget(),link.getParams());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (WICKET-42) mount and
IndexedParamUrlCodingStrategy severe malfunctions
Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WICKET-42?page=all ]
Johan Compagner resolved WICKET-42.
-----------------------------------
Fix Version/s: 2.0
Resolution: Fixed
Assignee: Johan Compagner
should be fixed now in 2.0
the filter path will never be the servlet path anymore when a filter is used
(the filter path and context path will be the complete root path of a wicket app)
filterpath is in a normal wicket applicaiton (with only one wicket app in the context) just "")
> mount and IndexedParamUrlCodingStrategy severe malfunctions
> -----------------------------------------------------------
>
> Key: WICKET-42
> URL: http://issues.apache.org/jira/browse/WICKET-42
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 2.0
> Environment: Sun Java System Application Server 9.0
> Reporter: Korbinian Bachl
> Assigned To: Johan Compagner
> Priority: Critical
> Fix For: 2.0
>
>
> Filter is set up this way:
> <filter>
> <filter-name>Name</filter-name>
> <filter-class>wicket.protocol.http.WicketFilter</filter-class>
> <init-param>
> <param-name>applicationClassName</param-name>
> <param-value>de.shop.Application</param-value>
> </init-param>
> <init-param>
> <param-name>configuration</param-name>
> <param-value>development</param-value>
> </init-param>
> </filter>
> <filter-mapping>
> <filter-name>Name</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> Application.java is:
> public void init()
> {
> mount(new IndexedParamUrlCodingStrategy("/Index",Index.class));
> }
>
> public Class getHomePage() {
> return Index.class;
> }
> when this is first deployed, all is OK and working as expected: e.g: accessing 127.0.0.1/ -> Index page loads
> if reDeploying it wont load anymore, no errors are issued however.
> If youre on 127.0.0.1/Index (index-page mounted) and then redeploy and klick on any link or reload the page, the path changes to 127.0.0.1/Index/Index
> if params are already issued it changes from 127.0.0.1/Index/param0/param1 to 127.0.0.1/Index/param0/param1/Index
> doing it another time ends up in 127.0.0.1/Index/param0/param1/Index/param0/param1/Index etc.
> links are BookMarkablePageLinks e.g:
> new BookmarkablePageLink(this,"linkTo",link.getLinkTarget(),link.getParams());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira