Project

General

Profile

Anomalie #15043

"thumbnails not found" message d'erreur rend les bannettes inaccessible

Added by Ludovic ARAUJO about 2 years ago. Updated over 1 year ago.

Status:
Clôturée
Priority:
2-Sérieux
Assignee:
Ludovic ARAUJO
Target version:
Start date:
10/06/2020
Due date:
Tags Courrier:

Description

Les bannettes sont inaccessible.

Le message d'erreur est mal formaté, il entraîne l'erreur suivante :

http://10.2.95.70/MaarchCourrier2010a/demo-1904/rest/resourcesList/users/10/groups/5/baskets/1?limit=10&offset=0
Unexpected token < in JSON at position 2073

Cause :
le message d'erreur json est mal formaté

{"errors":"Thumbnail not found on docserver"}<br />
<b>Warning</b>:  file_get_contents(/opt/demo-1904/thumbnails_mlb/2019/08/0001/0001_525614598.png): failed to open stream: No such file or directory in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResController.php</b> on line <b>715</b><br />

History

#1 Updated by Ludovic ARAUJO about 2 years ago

  • Target version changed from Inscription Backlog Courrier to 20.10 Develop

#2 Updated by Ludovic ARAUJO about 2 years ago

  • Subject changed from "thumbnails not found" message d'erreur to "thumbnails not found" message d'erreur rend les bannettes inaccessible
  • Description updated (diff)

#3 Updated by Ludovic ARAUJO about 2 years ago

autre source :

{"resources":[{"resId":6,"chrono":"2020\/A10\/2","barcode":null,"subject":"test","confidentiality":"N","statusLabel":"En cours","statusImage":"fm-letter-status-inprogress","priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":{"inShipping":false,"inSignatureBook":false},"countNotes":0,"isLocked":false},{"resId":5,"chrono":"2020\/A10\/1","barcode":null,"subject":"test","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":{"inShipping":false,"inSignatureBook":false},"countNotes":0,"isLocked":false},{"resId":4,"chrono":null,"barcode":null,"subject":"test","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":3,"chrono":null,"barcode":null,"subject":"test Odt","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":2,"chrono":null,"barcode":null,"subject":">Test Odt","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":1,"chrono":"2019\/A08\/11","barcode":null,"subject":"test avis","confidentiality":"N","statusLabel":"Avis","statusImage":"fm-letter-status-attr","priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":2,"isLocked":false}],"count":6,"basketLabel":"Corbeille d'enregistrement manuel","basket_id":"IndexingBasket","allResources":[6,5,4,3,2,1],"defaultAction":{"component":"documentDetails","data":null},"displayFolderTags":false,"templateColumns":null}<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  array_column() expects parameter 1 to be array, null given in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>168</b><br />
<br />
<b>Warning</b>:  in_array() expects parameter 2 to be array, null given in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>168</b><br />

#4 Updated by Ludovic ARAUJO about 2 years ago

msg console :

O {headers: u, status: 200, statusText: "OK", url: "http://10.2.95.70/MaarchCourrier2010a/demo-1904/re…ist/users/10/groups/5/baskets/1?limit=10&offset=0", ok: false, …}
error:
error: SyntaxError: Unexpected token < in JSON at position 2073 at JSON.parse (<anonymous>) at XMLHttpRequest.a (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/main-es2015.8108846a6a772e77bd0b.js:1:3173038) at l.invokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:7242) at Object.onInvokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/main-es2015.8108846a6a772e77bd0b.js:1:1742821) at l.invokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:7163) at i.runTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:2651) at u.invokeTask [as invoke] (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:8292) at p (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:20575) at XMLHttpRequest.f (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:20899)
message: "Unexpected token < in JSON at position 2073"
stack: "SyntaxError: Unexpected token < in JSON at position 2073↵    at JSON.parse (<anonymous>)↵    at XMLHttpRequest.a (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/main-es2015.8108846a6a772e77bd0b.js:1:3173038)↵    at l.invokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:7242)↵    at Object.onInvokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/main-es2015.8108846a6a772e77bd0b.js:1:1742821)↵    at l.invokeTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:7163)↵    at i.runTask (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:2651)↵    at u.invokeTask [as invoke] (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:8292)↵    at p (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:20575)↵    at XMLHttpRequest.f (http://10.2.95.70/MaarchCourrier2010a/demo-1904/dist/polyfills-es2015.dee134f39cb18b53b250.js:1:20899)"
__proto__: Error
text: "{"resources":[{"resId":6,"chrono":"2020\/A10\/2","barcode":null,"subject":"test","confidentiality":"N","statusLabel":"En cours","statusImage":"fm-letter-status-inprogress","priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":{"inShipping":false,"inSignatureBook":false},"countNotes":0,"isLocked":false},{"resId":5,"chrono":"2020\/A10\/1","barcode":null,"subject":"test","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":{"inShipping":false,"inSignatureBook":false},"countNotes":0,"isLocked":false},{"resId":4,"chrono":null,"barcode":null,"subject":"test","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":3,"chrono":null,"barcode":null,"subject":"test Odt","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":2,"chrono":null,"barcode":null,"subject":">Test Odt","confidentiality":"N","statusLabel":null,"statusImage":null,"priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":0,"isLocked":false},{"resId":1,"chrono":"2019\/A08\/11","barcode":null,"subject":"test avis","confidentiality":"N","statusLabel":"Avis","statusImage":"fm-letter-status-attr","priorityColor":"#000000","closing_date":null,"countAttachments":0,"hasDocument":true,"mailTracking":false,"integrations":[],"countNotes":2,"isLocked":false}],"count":6,"basketLabel":"Corbeille d'enregistrement manuel","basket_id":"IndexingBasket","allResources":[6,5,4,3,2,1],"defaultAction":{"component":"documentDetails","data":null},"displayFolderTags":false,"templateColumns":null}<br />↵<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>119</b><br />↵<br />↵<b>Warning</b>:  array_column() expects parameter 1 to be array, null given in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>168</b><br />↵<br />↵<b>Warning</b>:  in_array() expects parameter 2 to be array, null given in <b>/var/www/html/MaarchCourrier2010a/src/app/resource/controllers/ResourceListController.php</b> on line <b>168</b><br />↵"
__proto__: Object
headers: u {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ}
message: "Http failure during parsing for http://10.2.95.70/MaarchCourrier2010a/demo-1904/rest/resourcesList/users/10/groups/5/baskets/1?limit=10&offset=0"
name: "HttpErrorResponse"
ok: false
status: 200
statusText: "OK"
url: "http://10.2.95.70/MaarchCourrier2010a/demo-1904/rest/resourcesList/users/10/groups/5/baskets/1?limit=10&offset=0"
__proto__: x

#5 Updated by Support Maarch about 2 years ago

  • Status changed from A qualifier to A traiter

#6 Updated by Ludovic ARAUJO about 2 years ago

Résolution a envisager :

update groupbasket set list_display = '{"templateColumns":7,"subInfos":[{"value":"getPriority","cssClasses":[],"icon":"fa-traffic-light"},{"value":"getCategory","cssClasses":[],"icon":"fa-exchange-alt"},{"value":"getDoctype","cssClasses":[],"icon":"fa-suitcase"},{"value":"getAssignee","cssClasses":[],"icon":"fa-sitemap"},{"value":"getRecipients","cssClasses":[],"icon":"fa-user"},{"value":"getSenders","cssClasses":[],"icon":"fa-book"},{"value":"getCreationAndProcessLimitDates","cssClasses":["align_rightData"],"icon":"fa-calendar"}]}';

#7 Updated by Emmanuel DILLARD about 2 years ago

  • Project changed from Backlog to CURRENT SPRINT
  • Status changed from A traiter to En cours de dev (S)

#8 Updated by Florian AZIZIAN about 2 years ago

  • Assignee deleted (EDI PO)

#10 Updated by Florian AZIZIAN about 2 years ago

  • Assignee set to Florian AZIZIAN

#11 Updated by Florian AZIZIAN about 2 years ago

  • Status changed from En cours de dev (S) to Complément d'Informations
  • Assignee changed from Florian AZIZIAN to Ludovic ARAUJO

Il n'y a pas de lien direct entre le message d'erreur des imagettes et les bannettes accessible
Pour le warning visible dans le retour de la requête, c'est corrigé en ajoutant un contrôle.

Pour les bannettes inaccessibles, la colonne list_display est déjà mise à jour dans le script de migration migration/20.10/migrateBasketListDisplay.php lancé via le migrate.sh pour passer de la 20.03 à la 20.10
Y-a-t-il eu des erreurs lors de la migration ?
J'ai testé le script sur le jeu de donnée 20.03 => pas de soucis remarqué.

#12 Updated by Ludovic ARAUJO about 2 years ago

Pas d'autre erreur pour la migration.
Ajustement fonctionnel uniquement.

La develop_TMA1 sera mise à jour

#13 Updated by Ludovic ARAUJO about 2 years ago

  • Priority changed from 0-Bloquant to 2-Sérieux

#15 Updated by Emmanuel DILLARD about 2 years ago

  • Project changed from CURRENT SPRINT to Backlog

#16 Updated by Emmanuel DILLARD about 2 years ago

  • Target version changed from 20.10 Develop to 20.10 (Support actif)

#17 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from Complément d'Informations to Clôturée

Clôture : fin de suivi

#18 Updated by Emmanuel DILLARD over 1 year ago

  • Project changed from Backlog to Backlog Courrier
  • Target version changed from 20.10 (Support actif) to 20.10 (Actif)

Also available in: Atom PDF