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

Created on 26 January 2022, almost 3 years ago
Updated 11 April 2024, 9 months 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

Postponed: needs info

Version

11.0 πŸ”₯

Component
BatchΒ  β†’

Last updated 4 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

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Issue will need a valid test case.

    Also should decide if it's going to be fixed in an MR or patches but mixing the two causes unneeded noise.

  • Status changed to Postponed: needs info 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Marking postponed for more info, it is unclear why the URL would have invalid params. If someone can provide steps to reproduce this, it is likely to progress, otherwise it may be closed if no further info is provided.

Production build 0.71.5 2024