Projet

Général

Profil

Anomalie #10258

[User id numérique] erreur lors de l'enregistrement des courriers

Ajouté par Ludovic ARAUJO il y a environ 5 ans. Mis à jour il y a presque 3 ans.

Statut:
R&D - Terminé
Priorité:
1-Majeur
Assigné à:
Version cible:
Début:
10/04/2019
Echéance:
Version applicable MC:
Tags Courrier:
18.04.13, 18.10.8

Description

Si les utilisateurs on un identifiant numérique et qu'ils sont saisies en expediteur ou destinataire nous obtenons une erreur sql qui empêche l'enregistrement.

Historique

#1 Mis à jour par Ludovic ARAUJO il y a environ 5 ans

sql erreur :
a la création d'un courrier avec un utilisateur en expéditeur j'ai cette requete en erreur :

SELECT  res_id, count(1) OVER() AS __full_count FROM res_view_letterbox WHERE status <> 'DEL' AND contact_id =  '4567', ' '
 AND (creation_date >= CURRENT_TIMESTAMP - INTERVAL '5' DAY) AND (( 1=1 ) or ( destination in ('DRAG-DSI-APPLI', '') 
 AND (status NOT IN('VAL','ATT') OR (status='VAL' AND confidentiality='N')) ) or ( 1=1 ) OR  (  status = 'NUMQUAL') or (  status = 'ATT') 
 or (  status='INIT') or (  STATUS='RET') or (  status = 'EAVIS' AND res_id IN (SELECT res_id FROM listinstance WHERE coll_id = 'letterbox_coll' 
 AND item_type = 'user_id' AND item_id = '4567' AND item_mode = 'avis' and process_date is NULL)) or (  status='EAVIS' and ((DEST_USER = '4567') 
OR (DEST_USER IN (select user_id from users_entities WHERE entity_id IN( 'DRAG-DSI-APPLI')) or DESTINATION in (''))) and res_id NOT IN 
(SELECT res_id FROM listinstance WHERE item_mode = 'avis' and difflist_type = 'entity_id' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id) 
 AND res_id IN (SELECT res_id FROM listinstance WHERE item_mode = 'avis' and difflist_type = 'entity_id' and process_date is NULL and res_view_letterbox.res_id = res_id group by res_id)) 
 or (  status='EAVIS' and ((DEST_USER = '4567') OR (DEST_USER IN (select user_id from users_entities WHERE entity_id IN( 'DRAG-DSI-APPLI')) or DESTINATION in (''))) 
 and res_id IN (SELECT res_id FROM listinstance WHERE item_mode = 'avis' and difflist_type = 'entity_id' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id)) 
 or (  dest_user = '4567' AND (status in ('NEW', 'COU','STDBY','ENVDONE') OR (status ='VAL' AND confidentiality='N' AND entitytype = 'Service'))) or (  destination in ('DRAG-DSI-APPLI', '') 
 and (status <> 'DEL' AND status <> 'REP') and (now() > process_limit_date)) or (  destination in ('DRAG-DSI-APPLI', '') and (status in ('NEW', 'COU','STDBY','ENVDONE')  
 OR (status ='VAL' AND confidentiality='N' AND entitytype = 'Service')) and dest_user <> '4567') or (  status in ('ESIG', 'EVIS') AND dest_user = '4567') or (  status='EENV' AND dest_user = '4567') 
 or (  (res_id in (select res_id from listinstance WHERE coll_id = 'letterbox_coll' and item_type = 'user_id' and item_id = '4567' and item_mode = 'cc') 
or res_id in (select res_id from listinstance WHERE coll_id = 'letterbox_coll' and item_type = 'entity_id' and item_mode = 'cc' and item_id in ('DRAG-DSI-APPLI'))) 
and status not in ( 'DEL', 'END', 'SSUITE') and res_id not in (select res_id from res_mark_as_read WHERE user_id = '4567')))  ORDER by creation_date DESC OFFSET 0 LIMIT 1

Apres test j'ai remarquer que la partie en défaut est a la première ligne :

contact_id =  '4567', ' '

je pense que la requête aurais du avoir :

 contact_id =  '4567' and address_id = null

#2 Mis à jour par Ludovic ARAUJO il y a environ 5 ans

piste :

User_id : 4567

apps/maarch_entreprise/indexing_searching/contact_check.php
ligne 43 : if (is_numeric($_POST['contact_id'])) {

#3 Mis à jour par Ludovic ARAUJO il y a environ 5 ans

  • Priorité changé de 1-Majeur à 0-Bloquant

#4 Mis à jour par Emmanuel DILLARD il y a environ 5 ans

  • Sujet changé de [Enregistrement Courrier] erreur lors de l'enregistrement des courriers à [User id numérique] erreur lors de l'enregistrement des courriers
  • Statut changé de A traiter à R&D - A étudier
  • Assigné à mis à EDI PO
  • Priorité changé de 0-Bloquant à 1-Majeur

#5 Mis à jour par Emmanuel DILLARD il y a environ 5 ans

  • Statut changé de R&D - A étudier à R&D - A planifier
  • Version cible changé de 18.10 (support sécurité) à 19.04 (Fin de vie)
  • Tags Courrier 18.10.8 ajouté

#6 Mis à jour par Florian AZIZIAN il y a environ 5 ans

  • Statut changé de R&D - A planifier à R&D - En cours

#7 Mis à jour par Damien BUREL il y a environ 5 ans

  • Tags Courrier 18.04.13 ajouté

#9 Mis à jour par Florian AZIZIAN il y a environ 5 ans

  • Projet changé de Backlog à CURRENT SPRINT

#10 Mis à jour par Emmanuel DILLARD il y a environ 5 ans

  • Projet changé de CURRENT SPRINT à Backlog
  • Statut changé de R&D - En cours à R&D - Terminé

#11 Mis à jour par Emmanuel DILLARD il y a presque 3 ans

  • Projet changé de Backlog à Backlog Courrier
  • Version cible changé de 19.04 (Fin de vie) à 19.04 (Sécurité)

Formats disponibles : Atom PDF