You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pointbreak (JIRA)" <ji...@apache.org> on 2010/03/07 17:43:27 UTC
[jira] Created: (WICKET-2768) WebRequestCodingStrategy.encode
renders incorrect url in ajax requests
WebRequestCodingStrategy.encode renders incorrect url in ajax requests
----------------------------------------------------------------------
Key: WICKET-2768
URL: https://issues.apache.org/jira/browse/WICKET-2768
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.6
Reporter: Pointbreak
Bug introduced by WICKET-2312, see also last comment in that bug for ways to reproduce.
The WebRequestCodingStrategy.encode function contains the following code:
if (url != null && !portletRequest)
{
// We've found the URL and it's mounted.
// In the case of Ajax, we don't want to prepend a relative path
// to the mounted URL. See WICKET-2312.
skipRelativePathPrefix = isAjax;
}
Effect: when in an ajax request creating an url with component.urlFor(TargetPage.class, parameters) the generated url does not contain the relative path prefix, hence is incorrect.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2768) WebRequestCodingStrategy.encode
renders incorrect url in ajax requests
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2768.
-----------------------------------
Resolution: Duplicate
Assignee: Igor Vaynberg
> WebRequestCodingStrategy.encode renders incorrect url in ajax requests
> ----------------------------------------------------------------------
>
> Key: WICKET-2768
> URL: https://issues.apache.org/jira/browse/WICKET-2768
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.6
> Reporter: Pointbreak
> Assignee: Igor Vaynberg
>
> Bug introduced by WICKET-2312, see also last comment in that bug for ways to reproduce.
> The WebRequestCodingStrategy.encode function contains the following code:
> if (url != null && !portletRequest)
> {
> // We've found the URL and it's mounted.
> // In the case of Ajax, we don't want to prepend a relative path
> // to the mounted URL. See WICKET-2312.
> skipRelativePathPrefix = isAjax;
> }
> Effect: when in an ajax request creating an url with component.urlFor(TargetPage.class, parameters) the generated url does not contain the relative path prefix, hence is incorrect.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.