If a queue item has a uid parameter with a non-integer value, db exception is thrown.

Created on 29 March 2018, over 7 years ago
Updated 27 August 2025, 2 days ago

I tried creating a queue item and it happened it had an uid parameter set to FALSE. I got a db exception on cron run. It's caused by:

AdvancedQueue::createUniqueItem(), exactly:

uid' => is_array($data) && isset($data['uid']) ? $data['uid'] : $GLOBALS['user']->uid,

Drupal cron queue API doesn't include an uid parameter that'd mean something (at least it's not documented on https://api.drupal.org/api/drupal/modules%21system%21system.queue.inc/fu...), it's also not documented in the advancedqueue module so this may lead to unexpected behaviour if 'uid' is not actually Drupal user ID.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland Graber

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    This code is no longer present in the 8.x-1.x version therefore and that version is no longer supported so closing this issue.

Production build 0.71.5 2024