You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/01/19 16:58:34 UTC

[jira] [Resolved] (WICKET-5813) AtmosphereBehavior - invalid callback URL

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

Martin Grigorov resolved WICKET-5813.
-------------------------------------
    Resolution: Duplicate
      Assignee: Martin Grigorov  (was: Emond Papegaaij)

> AtmosphereBehavior - invalid callback URL
> -----------------------------------------
>
>                 Key: WICKET-5813
>                 URL: https://issues.apache.org/jira/browse/WICKET-5813
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-atmosphere
>    Affects Versions: 6.17.0, 6.18.0
>            Reporter: Daniel Stoch
>            Assignee: Martin Grigorov
>
> Inside AtmosphereBehavior method getCallbackUrl() return value is calculated as:
> {code}
> return super.getCallbackUrl() + "&" + WebRequest.PARAM_AJAX + "=true&" + WebRequest.PARAM_AJAX_BASE_URL + "=.";
> {code}
> Is it correct? When atmosphere update contains some resources (css,
> js) their paths are invalid encoded because
> WebRequest.PARAM_AJAX_BASE_URL is set to ".".
> Maybe this parameter should be encoded the same way as in AbstractDefaultAjaxBehavior:
> {code}
> RequestCycle requestCycle = component.getRequestCycle();
> Url baseUrl = requestCycle.getUrlRenderer().getBaseUrl();
> CharSequence ajaxBaseUrl = Strings.escapeMarkup(baseUrl.toString());
> {code}
> In my test case this solves a problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)