Batch API returns a NULL response if the query parameters are wrong

Created on 26 January 2022, about 3 years ago
Updated 4 February 2023, about 2 years ago

Hello, we are experiencing a problem. Our website has many operations involving batch API, and our users are experiencing a problem with them, apparently, if check_logged_in=1 is in the URL, it causes this error:

Uncaught PHP Exception Symfony\\Component\\HttpKernel\\Exception\\ControllerDoesNotReturnResponseException: "The controller must return a "Symfony\\Component\\HttpFoundation\\Response" object but it returned null. Did you forget to add a return statement somewhere in your controller?" at /var/www/html/nbu/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php line 98,

for example, going into "batch?id=273" works fine, but "batch?id=273&op=start?check_logged_in=1" causes the error.

I'm still not sure why the check_logged_in parameter sometimes appears randomly, was this a new change that I missed somehow?

Thank you.

πŸ› Bug report
Status

Needs work

Version

9.5

Component
BatchΒ  β†’

Last updated 15 days ago

Created by

πŸ‡―πŸ‡΄Jordan yahyaalhamad Palestine

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024