Computed property might cause shutdown methods to fail to run

Created on 9 April 2024, 3 months ago
Updated 6 May 2024, about 2 months ago

The \Drupal\rdf_sync\RdfSyncUriFieldItemList::postSave method is used to run the insert query into the `rdf_sync_uri` table. However, it might be that the value is needed right after the value is inserted (e.g. if a sync is forced in the code to run).
This might lead to cases where the value is requested from the database but is not found. Then NULL is passed in \EasyRdf\Resource::__construct and an exception is thrown.
If this happens during the shutdown's destruct method, other modules might be affected silently.

For me, this happens because we have a case with an Inline Entity form inside the entity's form. The IEF allows creation of the entity. The specific conditions are to be proven with a test.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece idimopoulos

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024