Project

General

Profile

Actions

Bug #98543

open

f:media viewhelper should display an error if youtube file not found

Added by Lina Wolf over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-10-06
Due date:
% Done:

0%

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

Description

I moved my database to the production server without considering that there is also a file saved for a youtube link. So I had the sys_file_reference but no file.

I would expect that the viewhelper displays an error in this case.

What happened though was an I frame where the name id of the video was missing:

```
<iframe src="https://www.youtube-nocookie.com/embed/?autohide=1&amp;amp;controls=1&amp;amp;enablejsapi=1&amp;amp;origin=https%3A%2F%2Frelaunch.example.de&quot; allowfullscreen="" width="600" height="337" class="video-embed-item" title="MyVideo" allow="fullscreen" tc-textcontent="true" data-tc-id="w-0.8615194315175201"></iframe>
```

The browser then gives you strange errors about the request being blocked due to CORS policy. It is not easy to find the real issue.

I would expect that the <f:media> viewhelper displays or throws an error in such a case.

TYPO3 11.5.16, PHP 8.0

No data to display

Actions

Also available in: Atom PDF