Summary | Error on delete message with question mark in message-id |
Queue | Horde Base |
Queue Version | FRAMEWORK_6_0 |
Type | Bug |
State | Unconfirmed |
Priority | 1. Low |
Owners | |
Requester | juanv.rodriguez (at) csic (dot) es |
Created | 02/20/2024 (449 days ago) |
Due | |
Updated | 02/20/2024 (449 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | No |
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Error on delete message with question mark in message-id
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
does a delete in horde_histories based on the message_id. This calls
_replaceParameters at
https://github.com/horde/Db/blob/58a35f6c57bab91d102bdc6bfdd6710ac0e3f674/lib/Horde/Db/Adapter/Base.php#L791
And fails the comparison raising an exception:
$paramCount = substr_count($sql, '?');
if (count($args) != $paramCount) {
$this->_logError('Parameter count mismatch: ' . $sql,
'Horde_Db_Adapter_Base::_replaceParameters');
throw new Horde_Db_Exception(sprintf('Parameter count
mismatch, expecting %d, got %d', $paramCount, count($args)));
}