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

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

Daniel Stoch created WICKET-5813:
------------------------------------

             Summary: 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.18.0, 6.17.0
            Reporter: Daniel Stoch
            Assignee: Emond Papegaaij


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)