- Issue created by @sandzel
- πΊπΈUnited States scott_earnest
Thank you @sandzel for the patch!
This is working for us:
- Drupal 10.1.6
- Acquia DAM Version: 1.0.11
- 8.1.18RTBC +1
- Issue was unassigned.
- Status changed to Needs review
10 months ago 10:34pm 19 March 2024 - last update
10 months ago Composer require-dev failure - πΊπΈUnited States joshf
@sandzel it looks like you're done working on this? Moving to needs review.
- Status changed to Postponed: needs info
9 months ago 1:35pm 30 April 2024 - ππΊHungary Balu Ertl Budapest πͺπΊ
Now tested, cannot reproduce on the latest development branch
1.1.x
. After saving the content entity with the WYSIWYG field it gets properly redirected to its canonical page where the embedded asset is being displayed while the invalid UUID is represented with a generic placeholder reading βThe referenced media source is missing and needs to be re-embeddedβ:
This message originates from core'sMediaEmbed
filter plugin which is responsible for processing these<drupal-media β¦></drupal-media>
custom HTML tags you also included as a sample. Interestingly according to Git blame, this entire class hasn't changed for 4 years, so the same protection mechanism should be in place for 10.1.6 which core version @scott_earnest confirmed. Also tested with both enabled and disabled on-site storing of asset files (a feature added in 1.1.x) but still worked as expected.Apparently we need a more detailed list of reproduction steps to get closer to the circumstances the reporter had.
- Merge request !46Resolve #3407783 "Nullprotecting invalid entity uuids" β (Merged) created by Balu Ertl
- Status changed to RTBC
9 months ago 2:26pm 30 April 2024 - ππΊHungary Balu Ertl Budapest πͺπΊ
Due to the fact that we call
\Drupal\Core\Entity\EntityStorageBase::loadByProperties()
which always returns an array both on its positive and negative branches of logic (source code) I see checkingis_array()
somewhat pointless. So I support @sandzel's idea to rather checkempty()
instead. - First commit to issue fork.
-
japerry β
committed 1ed7dbbb on 1.1.x authored by
Balu Ertl β
Issue #3407783 by sandzel: Error when embedding non-existing Media in...
-
japerry β
committed 1ed7dbbb on 1.1.x authored by
Balu Ertl β
- Status changed to Fixed
9 months ago 3:22am 3 May 2024 -
japerry β
committed 8ec01c38 on 1.0.x authored by
Balu Ertl β
Issue #3407783 by sandzel: Error when embedding non-existing Media in...
-
japerry β
committed 8ec01c38 on 1.0.x authored by
Balu Ertl β
Automatically closed - issue fixed for 2 weeks with no activity.