Bug: MySQL-only GET_LOCK breaks PostgreSQL/SQLite compatibility #92
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit Finding C-4
Severity: Critical (if targeting non-MySQL)
Issue:
QueueProcessor::acquireLock()usesSELECT GET_LOCK('mokojoomcross_queue', 0)which is MySQL-specific. If Joomla is configured with PostgreSQL or SQLite, this will throw a SQL error.Current impact: Low — most Joomla sites use MySQL/MariaDB. But Joomla 5 officially supports PostgreSQL.
Suggested fix:
Wrap in a try/catch with fallback to the previous read-then-write pattern for non-MySQL databases, or use
$db->getServerType()to branch.Files:
QueueProcessor.phpLabel:
priority: low,type: bugBranch created:
feature/92-bug-mysql-only-get-lock-breaks-postgresq