[ 
https://issues.apache.org/jira/browse/WICKET-6260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15622273#comment-15622273
 ] 

ASF subversion and git services commented on WICKET-6260:
---------------------------------------------------------

Commit 662b0b8c52b50e8581a17ca73a9b3dcd4a0f3404 in wicket's branch 
refs/heads/wicket-6.x from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=662b0b8 ]

WICKET-6260 let WebRequest detect Ajax request

WebRequest#isAjax() no longer touches the request body, thus it can safely be 
asked


> Revert Ajax detection needed for character encoding to WebRequest.isAjax()
> --------------------------------------------------------------------------
>
>                 Key: WICKET-6260
>                 URL: https://issues.apache.org/jira/browse/WICKET-6260
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 8.0.0-M2, 6.25.0, 7.5.0
>            Reporter: Sven Meier
>            Assignee: Sven Meier
>            Priority: Minor
>
> This issue has some history:
> - with WICKET-3908 the character encoding became dependent on whether the 
> request is sent via Ajax
> - with WICKET-3914 the Ajax check was limited to the request header, 
> preventing body parameters being read before the character encoding was set
> - since WICKET-6135 WebRequest.isAjax() no longer accesses body parameters.
> Thus I conclude that we can safely revert the changes of WICKET-3914 and just 
> use WebRequest.isAjax() again in WebApplication.createWebRequest().
> Benefits:
> - removes duplicated logic in WebApplication.createWebRequest()
> - allows WebRequest to identify Ajax request by different means (as 
> advertised in the Javadoc of #isAjax())
> - makes WICKET-6144 effective for all access to the 'Wicket-Ajax' 
> header/parameter



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

Reply via email to