Details
-
Bug
-
Resolution: Fixed
-
High
-
3.3.35, 4.5.3
-
Ibexa Experience
-
Yes
Description
Steps to reproduce:
- Create a new article. Schedule it to be hidden in the distant future.
- Run the ibexa:scheduled:run command to confirm that Total scheduled for hide: 1.
- Move the article to trash.
- Run ibexa:scheduled:run to confirm that Total scheduled for hide: 0.
- Create a folder.
- Create a new article in the folder. Schedule it to be hidden in a minute.
- Move the folder to the trash so that the article is also trashed.
- Run the ibexa:scheduled:run command to confirm that Total scheduled for hide: 1 if the hiding time has not passed yet.
Result:
If the hiding time has passed and the ibexa:scheduled:run command is executed, an exception is thrown:
Ibexa\Contracts\Core\Limitation\Target\DestinationLocation::__construct(): Argument #1 ($locationId) must be of type int, null given, called in /.../vendor/ibexa/core/src/lib/Repository/ContentService.php on line 2458
Expected result:
Scheduled entries should be deleted after removing their parent content. When running the ibexa:scheduled:run command there should be no scheduled entries present.