Project

General

Profile

Actions

Bug #92540

closed

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

Added by Christian Hackl about 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-10-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF