Actions
Anomalie #6504
fermé[DocRel] DocRel provoque une exception et crash le script si il n'existe pas au moins une relation
Début:
13/07/2016
Echéance:
% réalisé:
100%
Temps estimé:
Version source:
Solution proposée:
Vérifier en amont la requête avant de l'envoyer
Principaux fichiers impactés:
Complexité:
Contrôle:
Thème:
Socle technique
Régression:
Non
Description
$relations = new DocRel('', $document->getPropertyValue('initid'));
foreach ($relations->getRelations() as $relation) {
$targetInitid = $relation['cinitid'];
$userInitIds[$targetInitid] = $targetInitid;
}
alors qu'il n'existe pas au moins une relation, on a :
[Wed Jul 13 14:09:30.084578 2016] [:error] [pid 5956] [client 172.22.0.1:35148] {DB0005} query prepare error : ERROR: syntax error at or near ")"\nLIGNE 2 : from docrel where ( sinit
id=);\n ^\n\nselect docrel.sinitid, docrel.cinitid, docrel.ctitle, docrel.cicon, docrel.stitle, docrel.sicon, docrel.type, docrel.doctype\n
from docrel where ( sinitid=);\n, referer: http://localhost/?app=DOCUMENT
Actions
#1
Mis à jour par Marc Claverie il y a presque 10 ans
- Statut changé de Nouveau à À analyser
- Assigné à mis à Éric Brison
- Version cible mis à 3.2.23
Actions
#2
Mis à jour par Éric Brison il y a presque 10 ans
- Statut changé de À analyser à Assigné
- Assigné à changé de Éric Brison à Jérôme Augé
- Solution proposée mis à jour (diff)
Actions
#4
Mis à jour par Éric Brison il y a presque 10 ans
- Statut changé de Assigné à Intégré
Appliqué par commit internal-platfrom:commit:8e4dce1d8a8459a2ae672fb94af1a1247f97f5ef.
Actions