Media image file name containing spaces throws error

Created on 4 September 2024, 12 days ago
Updated 6 September 2024, 10 days ago

Overview

While testing Media Library integration (includes introducing a new main content renderer/`_wrapper_format`) 📌 Media Library integration (includes introducing a new main content renderer/`_wrapper_format`) Fixed uploading a image which contains spaces throws following error.

Drupal\Core\Render\Component\Exception\InvalidComponentException: [image.src] Invalid URL format in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of /var/www/html/web/core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Got an error with an image named D9 Certficate.png, Frame 11.png

Steps to reproduce
follow https://www.drupal.org/project/experience_builder/issues/3454173#comment... 📌 Media Library integration (includes introducing a new main content renderer/`_wrapper_format`) Fixed

Proposed resolution

TBD

User interface changes

🐛 Bug report
Status

Needs work

Component

Page builder

Created by

🇮🇳India omkar-pd

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024