Project

General

Profile

Actions

Bug #94920

closed

"Register SoftReference parsers via DI breaks" breaks backend

Added by Frank Nägler over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2021-08-18
Due date:
% Done:

100%

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

Description

Since this change was merged:

https://review.typo3.org/c/Packages/TYPO3.CMS/+/70177

Save content elements in the backend is broken in case the text contains plain links like https://typo3.com

An example from our site:

<p>Data transmission to the US is based on the Standard Contractual Clauses (SCC) of&nbsp; the European Commission. Details can be found here:&nbsp;<br /> https://policies.google.com/privacy/frameworks and<br /> https://privacy.google.com/businesses/controllerterms/mccs/.</p>

Because the preg_split could return false but no guard clause exists, the following exception is thrown:

PHP Warning: Invalid argument supplied for foreach() in /../public/typo3/sysext/core/Classes/DataHandling/SoftReference/UrlSoftReferenceParser.php line 32


Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Task #94687: Deprecate SoftReferenceIndexClosed2021-08-02

Actions
Related to TYPO3 Core - Feature #94741: Register SoftReference parsers via DIClosed2021-08-07

Actions
Related to TYPO3 Core - Bug #94919: PHP Warning: Invalid argument supplied for foreach() in /sysext/core/Classes/DataHandling/SoftReference/UrlSoftReferenceParser.php line 32Closed2021-08-18

Actions
Related to TYPO3 Core - Bug #95878: In linkvalidator, soft reference parser extracts 2 links from rich text with URL as anchor textUnder Review2021-11-05

Actions
Actions #1

Updated by Frank Nägler over 2 years ago

  • Related to Task #94687: Deprecate SoftReferenceIndex added
Actions #2

Updated by Frank Nägler over 2 years ago

  • Related to Feature #94741: Register SoftReference parsers via DI added
Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70676

Actions #4

Updated by Simon Gilli over 2 years ago

  • Related to Bug #94919: PHP Warning: Invalid argument supplied for foreach() in /sysext/core/Classes/DataHandling/SoftReference/UrlSoftReferenceParser.php line 32 added
Actions #5

Updated by Nikita Hovratov over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Nikita Hovratov over 2 years ago

  • Related to Bug #95878: In linkvalidator, soft reference parser extracts 2 links from rich text with URL as anchor text added
Actions

Also available in: Atom PDF