Something wrong with symfony/http-foundation ?

Created on 7 December 2024, 11 days ago

Problem/Motivation

Our site started crashing (out of memory error) after core update when there is this in the url "%5C". Shortest example https://example.com/%5C

Error:
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/symfony/http-foundation/Request.php on line 359

I've traced the issue down to updating symfony/http-foundation:v6.4.14 plus we are using custom module that uses Symfony\Component\HttpFoundation\RedirectResponse

While trying to test this on Simplytest.me I thought I'll try the Redirect module, but that actually died with similar out of memory error:

This may be the error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69632 bytes) in /var/lib/tugboat/stm/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php on line 51

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/lib/tugboat/stm/vendor/symfony/http-foundation/Response.php on line 1

Steps to reproduce

My best example atm is Simplytest.me and Redirect module.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component

routing system

Created by

πŸ‡ͺπŸ‡ͺEstonia hkirsman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024