Issue Bug Closed

#92540TYPO3\CMS\Extbase\Annotation\Validate URL can break the server in certain cases

Christian Hackl 10/12/20, 11:44 updated 01/13/23, 14:20

Description

if i use URL-validation in my Model like this:

namespace Vendor/ExtKey/Domain/Model/MyModel;

...

/**
 * Facebook
 * @var string
 * @TYPO3\CMS\Extbase\Extbase\Validate("Url")
 */
protected $facebook;

...

and if an URL such as “https://www.domain.tld _blank” is stored in the database (e.g. a TYPO3-Link notation), the server will crash – no TYPO3 error message!

With nginx Error:
HTTP 502 Bad Gateway

With Apache Error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in C:\MAMP\htdocs\typo3_sources\typo3_src-10.4.7\typo3\sysext\extbase\Classes\Error\Result.php on line 244

expectation:
- Error handling of TYPO3 including log message.
- and best of all a validator or a parameter for the existing validator with which “TYPO3 links” can be considered.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.