After upgrading Drupal to 7.39
When i change a setting (any setting) in a view an AJAX error pops up:
An AJAX HTTP request terminated abnormally.
HTTP Result code: 200
Debugging information follows.
Path: ...
StatusText: OK
CustomMessage: The response failed verification so will not be processed.
I did some googling, apparently this is related to: https://www.drupal.org/SA-CORE-2015-003
I also double-checked this issue but it seems to be a different problem: https://www.drupal.org/node/1376686.
How to reproduce: goto admin/structure/views, "edit" a view, click on the title to change title => the error pops up & the form to change the title doesn't appear.
Somebody proposed to "fix this by adding the following function to your Ajax callback function: ajax_set_verification_header();"
But i'm unsure where i should do this in the views module.
I also tried installing jquery_update and setting the jquery version for admin pages to 1.7 (and clear cache) but this did not resolve the issue.
And I tried a different admin theme, but this also did not work.
Comment | File | Size | Author |
---|---|---|---|
#3 | views-2572117-urlIsAjaxTrusted.patch | 361 bytes | Steven Jones |
ScreenShot1324.jpg | 83.24 KB | liezie_D |
Comments
Comment #2
liezie_D CreditAttribution: liezie_D commentedI was able to avoid the issue by changing misc/ajax.js
commenting out line 185:
// return ajax.error(xmlhttprequest, ajax.url, customMessage);
Comment #3
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedWe're seeing this issue when using views ajax and views load more to load in more pages via ajax. There are multiple ways for Views to inform Drupal that the views ajax path is 'safe' to include and process the data from it, we had the odd situation where someone had an HTTP proxy that was stripping off the Drupal header added in
ajax_set_verification_header
so we really needed the ajax path to get added to the whitelist of paths in Drupal.settings on the initial page request.I've attached a patch that should do just that.
Comment #4
weseze CreditAttribution: weseze commentedWe experienced the exact same problem with on of our clients running (what they claim to be) "default configured proxy/firewall software that a lot of big companies use".
The client was experiencing views listings not working when using exposed filter, sorting and pagers when the view was configured to reload via AJAX.
This patch fixed it instantly!
Comment #5
bburgI was bit by this today when a client's organization firewall as stripping out the header. +1
Comment #6
knalstaaf CreditAttribution: knalstaaf commentedHad a client with the same issue (using Kapersky) - patch solved this. RTBC imo.
Comment #7
DamienMcKennaPer the 7.39 release notes, this appears to be the correct way of handling the change.
Adding it to the queue for the next release.
Comment #9
DamienMcKennaCommitted (with an extra comment). Thanks!