Bug Tinymce: le contenu se vide lors du passage en mode modification
Exemple pour une personne concernée :
J'ai eu un problème avec LabNbook. Dès que je voulais modifier un document, je ne pouvais rien écrire et le document que je voulais modifier s'effacait. C'est pour ça que j'ai enregistré beaucoup de documents vide car je n'avais pas le choix.
Dans les logs d'erreurs JS, le problème apparaît pour ce compte à 15:53:39, 15:53:47, 15:53:52, 15:53:57...
2019-02-07 15:53:39 - 91.165.124.151 - POST /functions_php/diverse_ajax.php?func=logError - warning: Suspicious empty labdoc
Voici les logs commentés de ses connexions web (Chrome 71 sous Windows 10) :
# Chargement du HTML initial, puis AJAX pour chacun des rapports
[15:53:20] "GET /pages/report.php?idr=17583 HTTP/2.0" 200 7658
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 405
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 378
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 205
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 179
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 851
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 557
[15:53:20] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 2527
# L'initialisation de LabNbook est à corriger, la lecture d'un fichier vide n'est pas nécessaire.
[15:53:21] "GET /functions_php/report_view.php HTTP/2.0" 200 0
[15:53:21] "POST /widg_annotator/annotator_ajax.php?func=loadAnnotationsByReport HTTP/2.0" 200 2
# image en double ou bug ? a priori sans rapport
[15:53:21] "GET /tool_zwibbler/image_mgmt.php?action=get&fileid=16_2019-01-07_20-47-42.png&id_mission=844 HTTP/2.0" 200 416107
[15:53:22] "GET /tool_zwibbler/image_mgmt.php?action=get&fileid=16_2019-01-07_20-47-42.png&id_mission=844 HTTP/2.0" 200 416107
# passage en mode édition à 15:53:27 avec un appel à editLD()
[15:53:27] "POST /functions_php/report_ajax.php?func=editLD HTTP/2.0" 200 645
[15:53:27] "POST /tools_utilities/manage_ld.php?req=getLDData HTTP/2.0" 200 851
# a priori, clic sur le bouton "Valider" qui déclenche un appel à validateLD() avec un contenu vide
[15:53:38] "POST /functions_php/diverse_ajax.php?func=logError HTTP/2.0" 200 0
[15:53:42] "POST /functions_php/report_ajax.php?func=synchronize HTTP/2.0" 200 104
[15:53:42] "POST /tools_utilities/manage_ld.php?req=updateLDinDB HTTP/2.0" 200 31
# encore 3 erreurs où validateLD() voit un contenu vide dans le labdoc à envoyer au serveur
[15:53:46] "POST /functions_php/diverse_ajax.php?func=logError HTTP/2.0" 200 0
[15:53:50] "POST /functions_php/diverse_ajax.php?func=logError HTTP/2.0" 200 0
[15:53:56] "POST /functions_php/diverse_ajax.php?func=logError HTTP/2.0" 200 0
[15:54:07] "POST /tools_utilities/manage_ld.php?req=updateLDinDB HTTP/2.0" 200 31
[15:54:07] "POST /functions_php/report_ajax.php?func=synchronize HTTP/2.0" 200 104
# abandon
[15:54:07] "POST /functions_php/report_ajax.php?func=traceLeaveReport HTTP/2.0" 200 0
Edited by Francois Gannaz