Voir https://github.com/glpi-project/glpi/issues/1264
From: Glpi-user [mailto:glpi-user-boun...@gna.org] On Behalf Of Benoit LE ROHELLEC Sent: Saturday, November 12, 2016 10:49 PM To: glpi-user@gna.org Subject: Re: [Glpi-user] Glpi-user Digest, Vol 132, Issue 2 Bonsoir, La répétition de l'erreur sql doit être dû à la présence d'un mail dans votre collecteur. Le mail reste bloqué dans la boîte de réception, et le collecteur tente de le traiter encore et encore. Supprimez le mail et l'erreur disparaîtra. Cdlt -------- Message d'origine -------- De : glpi-user-requ...@gna.org<mailto:glpi-user-requ...@gna.org> Date : 08/11/2016 17:09 (GMT+01:00) À : glpi-user@gna.org<mailto:glpi-user@gna.org> Objet : Glpi-user Digest, Vol 132, Issue 2 Send Glpi-user mailing list submissions to glpi-user@gna.org<mailto:glpi-user@gna.org> To subscribe or unsubscribe via the World Wide Web, visit https://mail.gna.org/listinfo/glpi-user or, via email, send a message with subject or body 'help' to glpi-user-requ...@gna.org<mailto:glpi-user-requ...@gna.org> You can reach the person managing the list at glpi-user-ow...@gna.org<mailto:glpi-user-ow...@gna.org> When replying, please edit your Subject line so it is more specific than "Re: Contents of Glpi-user digest..." Today's Topics: 1. Re: sql error (Valéry Roché) 2. Re: sql error (Moron, Olivier) ---------------------------------------------------------------------- Message: 1 Date: Tue, 8 Nov 2016 15:55:49 +0100 From: Valéry Roché <valery.ro...@univ-poitiers.fr<mailto:valery.ro...@univ-poitiers.fr>> To: Liste de diffusion des utilsateurs de GLPI <glpi-user@gna.org<mailto:glpi-user@gna.org>> Subject: Re: [Glpi-user] sql error Message-ID: <146154f7-f40b-e6c0-7d3e-581236d7a...@univ-poitiers.fr<mailto:146154f7-f40b-e6c0-7d3e-581236d7a...@univ-poitiers.fr>> Content-Type: text/plain; charset="utf-8"; Format="flowed" Bonjour, Merci pour la réponse, je me sens moins seul. Je comprends bien l'erreur SQL. Ce que je voudrais savoir c'est comment faire pour que GLPIne tente plus d'insérer cette ligne dans cette table. Je ne trouve aucun fichier sur le serveur où cette requête aurait pu être stockée. Et donc toutes les cinq minutes (mon cron est réglée à cette fréquence) une nouvelle ligne s'ajoute dans le sql-errors.log. N'ya-t-il pas au moins un timeout ? Bonne fin de journée, Valéry Le 08/11/2016 à 15:33, Nicolas Sautier a écrit : > > bonjour, > > j'ai le même type d'erreur en 0.90 > > le problème vient du fait que l'apostrophe qui précède le mot identifiant est > interprété comme une > cote et donc le reste du message est mal interprété pour l'injection mysql. > > il faudrait que le collecteur de mail encode le corps du message afin que les > caractère spéciaux > soit protégés. > > V > > ComUE LNF *Nicolas Sautier* > /Responsable Pôle Technique > Direction des Systèmes d'Information/ > *Communauté d'Universités et d'Établissements Lille Nord de France* > 365 bis rue Jules Guesde - Bâtiment C > 59 650 VILLENEUVE D'ASCQ > Ligne directe : 03.20.79.86.29 > Plan : Entrée 3 (rue Parmentier) > <http://www.espe-lnf.fr/IMG/pdf/plan_direction_modifie.pdf> > > Le 08/11/2016 à 15:07, Valéry Roché a écrit : >> Hi list, >> >> I have GLPI 9.1 installed and a strange SQL error. >> >> Extract from sql-errors.log: >> >> 2016-11-08 14:51:02 [@glpi] >> *** MySQL query error: >> SQL: INSERT >> INTO `glpi_ticketfollowups` >> (`content`,`tickets_id`,`users_id`,`requesttypes_id`,`is_private`,`date`,`date_creation`,`date_mod`) >> VALUES (\'Bonsoir,\\nJe vous réponds pour vous donner la réponse à ma >> question secrète : >> xxxxx,\\nSi je me suis trompé, pourriez vous quand même envoyer >> l\'identifiant sur la boite >> laposte.net ? \\nVous<file:///\\nVous> remerciant >> d\'avance,\\nCordialement,\\nA. François\\n\\nLe 4 novembre >> 2016 à 22:22, <helpd...@univ-poitiers.fr> a écrit :\\n\\n >> \\n\\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08<file:///\\n\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08> >> 14:51:02\',\'2016-11-08 14:51:02\',\'2016-11-08 >> 14:51:02\') >> Error: You have an error in your SQL syntax; check the manual that >> corresponds to your MySQL >> server version for the right syntax to use near 'identifiant sur la boite >> laposte.net ? \nVous >> remerciant d'avance,\nCordialement' at line 2 >> Backtrace : >> inc/commondbtm.class.php:427 >> inc/commondbtm.class.php:838 CommonDBTM->addToDB() >> inc/mailcollector.class.php:554 CommonDBTM->add() >> inc/mailcollector.class.php:1614 MailCollector->collect() >> : MailCollector::cronMailgate() >> inc/crontask.class.php:803 call_user_func() >> front/cron.php:88 CronTask::launch() >> >> >> The error is the value of the is_private field is not quoted. >> >> GLPI has been updated on Octobre #31, this error dates from November #4. I >> have restarted Apache >> and finally the server itself : the error comes back again and again. I >> don't find a location >> where this query could be stored. >> >> What should be done in order to clear this error ? >> >> Sincerely, >> Valéry >> >> >> _______________________________________________ >> Glpi-user mailing list >> Glpi-user@gna.org<mailto:Glpi-user@gna.org> >> https://mail.gna.org/listinfo/glpi-user > -- i-médias Université de Poitiers 7 rue Shirin Ebadi Bâtiment B21 TSA 81109 86073 POITIERS CEDEX 9 Tél. : +33 (0)5.49.45.39.54 Fax : +33 (0)5.49.45.35.99 -------------- next part -------------- An HTML attachment was scrubbed... URL: </public/glpi-user/attachments/20161108/eab371b0/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 6482 bytes Desc: not available URL: </public/glpi-user/attachments/20161108/eab371b0/attachment.gif> ------------------------------ Message: 2 Date: Tue, 8 Nov 2016 16:08:13 +0000 From: "Moron, Olivier" <olivier.mo...@araymond.com<mailto:olivier.mo...@araymond.com>> To: Liste de diffusion des utilsateurs de GLPI <glpi-user@gna.org<mailto:glpi-user@gna.org>>, "valery.ro...@univ-poitiers.fr<mailto:valery.ro...@univ-poitiers.fr>" <valery.ro...@univ-poitiers.fr<mailto:valery.ro...@univ-poitiers.fr>> Subject: Re: [Glpi-user] sql error Message-ID: <080df555e8a78147a053578ec592e83901254f1...@arexdb711.ar.ray.group<mailto:080df555e8a78147a053578ec592e83901254f1...@arexdb711.ar.ray.group>> Content-Type: text/plain; charset="utf-8" Pouvez-vous poster sur github ? https://github.com/glpi-project/glpi/issues merci, Tomolimo From: Glpi-user [mailto:glpi-user-boun...@gna.org] On Behalf Of Nicolas Sautier Sent: Tuesday, November 08, 2016 3:33 PM To: valery.ro...@univ-poitiers.fr<mailto:valery.ro...@univ-poitiers.fr>; Liste de diffusion des utilsateurs de GLPI Subject: Re: [Glpi-user] sql error bonjour, j'ai le même type d'erreur en 0.90 le problème vient du fait que l'apostrophe qui précède le mot identifiant est interprété comme une cote et donc le reste du message est mal interprété pour l'injection mysql. il faudrait que le collecteur de mail encode le corps du message afin que les caractère spéciaux soit protégés. V [ComUE LNF] Nicolas Sautier Responsable Pôle Technique Direction des Systèmes d'Information Communauté d'Universités et d'Établissements Lille Nord de France 365 bis rue Jules Guesde - Bâtiment C 59 650 VILLENEUVE D'ASCQ Ligne directe : 03.20.79.86.29 Plan : Entrée 3 (rue Parmentier)<http://www.espe-lnf.fr/IMG/pdf/plan_direction_modifie.pdf> Le 08/11/2016 à 15:07, Valéry Roché a écrit : Hi list, I have GLPI 9.1 installed and a strange SQL error. Extract from sql-errors.log: 2016-11-08 14:51:02 [@glpi] *** MySQL query error: SQL: INSERT INTO `glpi_ticketfollowups` (`content`,`tickets_id`,`users_id`,`requesttypes_id`,`is_private`,`date`,`date_creation`,`date_mod`) VALUES (\'Bonsoir,\\nJe vous réponds pour vous donner la réponse à ma question secrète : xxxxx,\\nSi je me suis trompé, pourriez vous quand même envoyer l\'identifiant sur la boite laposte.net ? \\nVous<file:///\\nVous> remerciant d\'avance,\\nCordialement,\\nA. François\\n\\nLe 4 novembre 2016 à 22:22, <helpd...@univ-poitiers.fr> a écrit :\\n\\n \\n\\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08<file:///\\n\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08<file:///\\n\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08%3cfile:\n\n\',\'2602\',\'0\',\'0\',0,\'2016-11-08>> 14:51:02\',\'2016-11-08 14:51:02\',\'2016-11-08 14:51:02\') Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identifiant sur la boite laposte.net ? \nVous remerciant d'avance,\nCordialement' at line 2 Backtrace : inc/commondbtm.class.php:427 inc/commondbtm.class.php:838 CommonDBTM->addToDB() inc/mailcollector.class.php:554 CommonDBTM->add() inc/mailcollector.class.php:1614 MailCollector->collect() : MailCollector::cronMailgate() inc/crontask.class.php:803 call_user_func() front/cron.php:88 CronTask::launch() The error is the value of the is_private field is not quoted. GLPI has been updated on Octobre #31, this error dates from November #4. I have restarted Apache and finally the server itself : the error comes back again and again. I don't find a location where this query could be stored. What should be done in order to clear this error ? Sincerely, Valéry _______________________________________________ Glpi-user mailing list Glpi-user@gna.org<mailto:Glpi-user@gna.org> https://mail.gna.org/listinfo/glpi-user -------------- next part -------------- An HTML attachment was scrubbed... URL: </public/glpi-user/attachments/20161108/73e0d272/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 6482 bytes Desc: image001.gif URL: </public/glpi-user/attachments/20161108/73e0d272/attachment.gif> ------------------------------ Subject: Digest Footer _______________________________________________ Glpi-user mailing list Glpi-user@gna.org<mailto:Glpi-user@gna.org> https://mail.gna.org/listinfo/glpi-user ------------------------------ End of Glpi-user Digest, Vol 132, Issue 2 *****************************************
_______________________________________________ Glpi-user mailing list Glpi-user@gna.org https://mail.gna.org/listinfo/glpi-user