CSV expander queue worker fails to generate ADO ingest update queue items when run from cron or hydroponics #214
Labels
bug
Something isn't working
Drupal 10
enhancement
New feature or request
queue workers
Ones taking the FI and doing the FO
Reporting
Errors, Logs, etc.
Milestone
The reason is because, when running under cron and AmiUtilityService::preprocessAmiSet() is called from...
ami/src/Plugin/QueueWorker/CsvADOQueueWorker.php
Line 90 in f9d012e
... the current user is anonymous (0), and as a result the access check...
ami/src/AmiUtilityService.php
Line 1842 in f9d012e
... fails.
After discussion on slack, we agreed that it made sense to replicate the logic from...
ami/src/Plugin/QueueWorker/IngestADOQueueWorker.php
Lines 1188 to 1192 in f9d012e
... where the access check is performed using the user account provided in the AMI set.
PR forthcoming!
The text was updated successfully, but these errors were encountered: