Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies in admin-ajax.php?action=as_async_request_queue_runner call with too many backslashes #1230

Open
OnGe333 opened this issue Jan 17, 2025 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@OnGe333
Copy link

OnGe333 commented Jan 17, 2025

We are getting error AH00561: Request header exceeds LimitRequestFieldSize: Cookie - in other words, too much cookie data, Apache is not processing it, Wordpress is not getting any cookies at all. In the log I could find that large cookie data is almost always at the call /wp-admin/admin-ajax.php?action=as_async_request_queue_runner

The problem seems to be caused by excessive backslashing of cookie data. In our case, the problem is a cookie containing JSON, where it inserts \ before " and next logged request with this data has double the number of backslashes. This seems to continue until it hits the cookie data size limit. After few calls, the result looks like this:

pys_advanced_form_data={\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"first_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Jan\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"last_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Nov\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\u00e1k\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"email\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"[email protected]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"phone\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"123456789\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}

The cookie shown here is from the PixelYourSite plugin, but the same problem occurs with any other cookie containing JSON.

I have not been able to find the cause of the problem, but it seems to be in Action Scheduler. The problem manifests itself exclusively when calling /wp-admin/admin-ajax.php?action=as_async_request_queue_runner

Due to the asynchronous nature, I am having trouble debugging it, so I don't have way how to replicate error. If you can give me advice how to do it, I will be happy to provide more information.

Tested on WordPress/6.7.1

@Konamiman Konamiman added the type: bug The issue is a confirmed bug. label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants