Voir les traceurs | Bugs | Exporter au format CSV

Date :
29/05/2017 17:59
Priorité :
3
État :
Closed
Proposé par :
Victor Grousset (tuxayo)
Confié à :
Victor Grousset (tuxayo)
Version concernée :
none
Version cible :
none
Sévérité :
normal
Résolution :
none
Résumé :
Warnings mbregex (problème d'encogage) + prototypes fonctions

Description détaillée
Le travail de portage des tests de Selenium vers Robot Framework a permit de mettre à jour ces warnings liées à mbregex.

May 29 17:37:39 error.log: [Mon May 29 17:40:17.366302 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 575, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:37:39 error.log: [Mon May 29 17:40:17.366429 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 576, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:37:39 error.log: [Mon May 29 17:40:17.366509 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 580, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:37:39 error.log: [Mon May 29 17:40:17.366616 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 581, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:38:08 error.log: [Mon May 29 17:40:46.696857 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 575, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:38:08 error.log: [Mon May 29 17:40:46.696925 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 576, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:38:08 error.log: [Mon May 29 17:40:46.696947 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 580, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1
May 29 17:38:08 error.log: [Mon May 29 17:40:46.696963 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 581, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1

Message  ↓
Date : 10/07/2017 14:51
Expéditeur : Victor Grousset

[Warnings regex]
Le fichier
php/openmairie/upload.class.php
est presque en latin1. (encodage proche)

Et vers les lignes 576 il y a des regex avec pleins de caractères spéciaux.
Donc comme PHP tourne avec un encodage différent, le moteur de regex ne comprends pas la regex qu'on lui donne.

C'est un fichier du framework et le problème est réglé dans les version récentes

[Warnings PHP 7]
Plus de la moitié des warnings viennent du framework.

Et pour le reste c'est pas pertinent de le faire maintenant.
On ne va pas gagner grand chose et ça risque d'être du travail pour rien en fonction de ce qu'il faut modifier pour migrer le framework.

Par rapport à la fonction d'import de fichier avec des accents et autres dans le nom:
Ça sera corrigé au moment de la MAJ du framework.

Le jour où c'est fait, voilà le test de la fonctionnalité:
Import des inscriptions d'office avec caractères non ASCII dans le nom
[Documentation] Import des inscriptions d'office avec caractères non ASCII
... dans le nom

Depuis la page d'accueil admin admin
Importer le fichier d'inscriptions d'office io_importé.xml # peut être mettre d'autre caractères? voir php/openmairie/upload.class.php ligne ~570
# ne pas oublier de créer le fichier dans binary_files
# Car en cas d'erreur dans le test on ne peut pas voir la différence entre un fichier non inexistant et le bug courant de non conversion des caractères spéciaux.

Date : 07/07/2017 17:21
Expéditeur : Victor Grousset

Je viens d'uploader un fichier avec tout les warnings qui sortent après un passage de la suite de tests. (il y a surtout des problèmes de prototypes de fonctions qui ne colles pas.(PHP >= 7))

Pièces jointes :
Taille Nom Date Par Télécharger
894 KioopenElec_all_php_logs.txt07/07/2017 17:19Victor GroussetopenElec_all_php_logs.txt
Champ Ancienne valeur Date Par
status_idOpen10/07/2017 14:51Victor Grousset
close_dateAucun(e)10/07/2017 14:51Victor Grousset
summaryWarnings mbregex + prototypes fonctions07/07/2017 18:32Victor Grousset
summaryWarnings: mb_ereg(): mbregex compile err: premature end of char-class + Warnings PHP 707/07/2017 17:31Victor Grousset
File Added3527: openElec_all_php_logs.txt07/07/2017 17:19Victor Grousset
summaryPHP Warning: mb_ereg(): mbregex compile err: premature end of char-class07/07/2017 17:18Victor Grousset
detailsLe travail de portage des tests de Selenium vers Robot Framework a permit de mettre à jour ces warnings. On dirait que ça vient d'une opération upload qui est réalisée deux fois pendant la batterie de tests. À investiguer. May 29 17:37:39 error.log: [Mon May 29 17:40:17.366302 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 575, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:37:39 error.log: [Mon May 29 17:40:17.366429 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 576, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:37:39 error.log: [Mon May 29 17:40:17.366509 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 580, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:37:39 error.log: [Mon May 29 17:40:17.366616 2017] [:error] [pid 25341] [client 127.0.0.1:35892] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 581, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:38:08 error.log: [Mon May 29 17:40:46.696857 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 575, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:38:08 error.log: [Mon May 29 17:40:46.696925 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 576, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:38:08 error.log: [Mon May 29 17:40:46.696947 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 580, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 May 29 17:38:08 error.log: [Mon May 29 17:40:46.696963 2017] [:error] [pid 25342] [client 127.0.0.1:35893] PHP Warning: mb_ereg(): mbregex compile err: premature end of char-class in /home/jenkins/tmp/workspace/openElec__P2_migrate-tests-to-robot-framework/php/openmairie/upload.class.php on line 581, referer: http://localhost/openelec/spg/upload.php?origine=fic1&form=f1 07/07/2017 17:18Victor Grousset
FEDER Powered By FusionForge Collaborative Development Environment Charte d'utilisation / Nous contacter / Mentions légales Haut de page