Anomalie #11854
Correction basket_event_stack.php
Description
Erreur PHP :
PHP Fatal error: Uncaught PDOException: SQLSTATE[23502]: Not null violation: 7 ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « recipient »
DETAIL: La ligne en échec contient (41667, courrier@info.lan, null, null, null, null, Courriers à traiter, execute(Array)
#1 /opt/bin/courrier-17.06.19-prod/modules/notifications/batch/basket_event_stack.php(279): Database->query('INSERT INTO not...', Array)
#2 {main}
thrown in /opt/bin/courrier-17.06.19-prod/core/class/class_db_pdo.php on line 336
Résolution :
Après lecture du code et inspection des tables, il s'avère que la table notif_event_stack contenait des données erronées : 8 lignes avec le table_name res_letterbox possédaient un variable user_id contenant une chaine vide.
Ces données sont le produit du script basket_event_stack.php qui s'avère être pas ou peu documenté et potentiellement bogué.
J'ai sauvegardé puis purgé les lignes incorrectes.
History
#2 Updated by Emmanuel DILLARD over 2 years ago
- Status changed from A traiter to Prêt à développer
- Target version changed from Courrier 17.06 (TMA) to 20.03 (Support restreint)
- Tags Courrier 18.10.11, 19.04.8 added
#4 Updated by Emmanuel DILLARD over 2 years ago
- Subject changed from proposition correctif 17.06 to Correction basket_event_stack.php (17.06)
#5 Updated by Emmanuel DILLARD over 2 years ago
- Project changed from Backlog to CURRENT SPRINT
- Subject changed from Correction basket_event_stack.php (17.06) to Correction basket_event_stack.php
- Status changed from Prêt à développer to En cours de dev (S)
#6 Updated by Emmanuel DILLARD over 2 years ago
- Tags Courrier 19.04.9 added
- Tags Courrier deleted (
19.04.8)
#7 Updated by Emmanuel DILLARD over 2 years ago
- Project changed from CURRENT SPRINT to Backlog
- Status changed from En cours de dev (S) to Développé / Analysé (S)
#11 Updated by Emmanuel DILLARD 11 months ago
- Project changed from Backlog to Backlog Courrier
- Target version changed from 20.03 (Support restreint) to 20.03 (Restreint)