- Issue created by @omkar-pd
- Status changed to Postponed: needs info
3 months ago 9:20am 4 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
You used a file called
D9 Certificate.png
.I cannot reproduce this with a file named exactly like that.
I'm confused why 🐛 `{type: string, format: uri}` disallows image URLs containing spaces, `uri` data type stores + returns invalid URIs! Fixed didn't fix it for you. I wonder if somehow your XB test site is in a weird state. Can you please re-install Drupal + XB and try again? 🤔
- 🇮🇳India omkar-pd
Tried reinstalling drupal. Same issue for me.
composer require drupal/core-recommended:11.x-dev@dev drupal/core-composer-scaffold:11.x-dev@dev drupal/core-project-message:11.x-dev@dev --update-with-all-dependencies drush si cd web/modules/contrib/ git clone git@git.drupal.org:project/experience_builder.git cd experience_builder git remote add experience_builder-3454173 git@git.drupal.org:issue/experience_builder-3454173.git git fetch experience_builder-3454173 git checkout 3454173-media-library-widget-in-props-form run npm commands in /ui Install Media and Media Library Modules. Install XB. Go to /admin/config/development/performance and uncheck Aggregate JavaScript files & save. Add Article content. Go to /xb/node/1 and test with the image component.
- Status changed to Active
3 months ago 1:20pm 4 September 2024 - 🇮🇳India Ruturaj Chaubey Pune, India
I was able to reproduce this issue on a fresh Drupal + XB install.
Drupal\Core\Render\Component\Exception\InvalidComponentException: [image.src] Invalid URL format in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of /var/www/html/core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).\
- Status changed to Needs work
3 months ago 1:30pm 4 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Can you please update
\Drupal\Tests\experience_builder\TestSite\XBTestSetup
to make the same "test with an image that contains a space" changes that https://git.drupalcode.org/project/experience_builder/-/merge_requests/189 introduced for 🐛 `{type: string, format: uri}` disallows image URLs containing spaces, `uri` data type stores + returns invalid URIs! Fixed ? 🙏That should be able to reproduce it then!
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#7: that's 🐛 Redux support for ImageWidget: `[image] String value found, but an object is required` Postponed , not this issue — because you tested using
ImageWidget
, notMediaLibraryWidget
. - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This has not been reproduced in almost 3 weeks.