Project

General

Profile

Actions

Bug #96509

closed

Vimeo Online Media helper fetches incorrect media ID from embed snippet

Added by Jigal van Hemert over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

The Vimeo Online Media Helper tries to extract the media ID from various types of vimeo URLs. The regular expression was modified to support event type URLs and at that moment a bug was introduced that included the leading slash in the media ID.

Actions #1

Updated by Oliver Hader over 2 years ago

Do you have an issue number which introduced that regular expression you mentioned?
Can you please post the Vimeo ID or URL you have been using (just to see the format/structure)?

Actions #2

Updated by Oliver Hader over 2 years ago

Are you referring to this change?
https://review.typo3.org/c/Packages/TYPO3.CMS/+/69953/2/typo3/sysext/core/Classes/Resource/OnlineMedia/Helpers/VimeoHelper.php

Currently

...(?:video|event\/)...

Should have been (allowing either video/ or event/)

...(?:video\/|event\/)...
Actions #3

Updated by Oliver Hader over 2 years ago

  • Status changed from New to Accepted
  • Start date deleted (2022-01-11)

https://regex101.com/r/uLXbGA/1 shows the problem - and that the ID 7215347324/hasf8a65sdsa7d now has that leading slash /7215347324/hasf8a65sdsa7d

Introduced for v11.4.0 and v10.4.20
https://review.typo3.org/q/I8c074372c3c42b8c5a74afff7b9fb386c2f136a2

Actions #4

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

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

Actions #5

Updated by Jigal van Hemert over 2 years ago

Oliver Hader wrote in #note-3:

https://regex101.com/r/uLXbGA/1 shows the problem - and that the ID 7215347324/hasf8a65sdsa7d now has that leading slash /7215347324/hasf8a65sdsa7d

Introduced for v11.4.0 and v10.4.20
https://review.typo3.org/q/I8c074372c3c42b8c5a74afff7b9fb386c2f136a2

Yes, the '\/' was missing after the "video" part.

Actions #6

Updated by Gerrit Code Review over 2 years ago

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

Actions #7

Updated by Gerrit Code Review over 2 years ago

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

Actions #8

Updated by Oliver Hader over 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF