Anomalie #15043
fermé"thumbnails not found" message d'erreur rend les bannettes inaccessible
Ajouté par Ludovic ARAUJO il y a environ 4 ans. Mis à jour il y a plus de 3 ans.
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 />
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
- Version cible changé de Inscription Backlog Courrier à 20.10 Develop
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
- Sujet changé de "thumbnails not found" message d'erreur à "thumbnails not found" message d'erreur rend les bannettes inaccessible
- Description mis à jour (diff)
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
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 />
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
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
Mis à jour par Support Maarch il y a environ 4 ans
- Statut changé de A qualifier à A traiter
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
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"}]}';
Mis à jour par Emmanuel DILLARD il y a environ 4 ans
- Projet changé de 298 à 299
- Statut changé de A traiter à R&D - En cours
Mis à jour par Florian AZIZIAN il y a environ 4 ans
- Statut changé de R&D - En cours à Complément d'Informations
- Assigné à changé de Florian AZIZIAN à 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é.
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
Pas d'autre erreur pour la migration.
Ajustement fonctionnel uniquement.
La develop_TMA1 sera mise à jour
Mis à jour par Ludovic ARAUJO il y a environ 4 ans
- Priorité changé de 0-Bloquant à 2-Sérieux
Mis à jour par Emmanuel DILLARD il y a environ 4 ans
- Version cible changé de 20.10 Develop à 20.10 (Fin de vie)
Mis à jour par Emmanuel DILLARD il y a presque 4 ans
- Statut changé de Complément d'Informations à Clôturé
Clôture : fin de suivi
Mis à jour par Emmanuel DILLARD il y a plus de 3 ans
- Projet changé de 298 à Backlog Courrier
- Version cible changé de 20.10 (Fin de vie) à 20.10