Projet

Général

Profil

Anomalie #14175

Mis à jour par Laurent GIOVANNONI il y a presque 4 ans


pour le SITIV, je viens de m'y connecter entre 2 lignes de code INPI pour voir ce que donne le lancement du batch retrieveMailFromExternalSignatoryBook pour cs_corbas.
voici le retour :
~~~ xml
[maarch@dcmaarch-prod visa]$ ./batch/scripts/retrieveMailFromExternalSignatoryBook.sh
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 174
Warning: simplexml_load_string(): Formule de politesse avec Madame la Présidente</ns2:annotation></ns2:LogDossier in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 174
Warning: simplexml_load_string(): ^ in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 174
Fatal error: Uncaught Error: Call to a member function children() on boolean in /var/www/html/MaarchCourrier1810/modules/visa/class/IParapheurController.php:236
Stack trace:
#0 /var/www/html/MaarchCourrier1810/modules/visa/batch/process_mailsFromSignatoryBook.php(251): IParapheurController::retrieveSignedMails(Array)
#1 {main}
thrown in /var/www/html/MaarchCourrier1810/modules/visa/class/IParapheurController.php on line 236
~~~



j'ai débloqué le batch avec les deux patchs en PJ

ce patch :

~~~ xml
[maarch@dcmaarch-prod visa]$ git diff /var/www/html/MaarchCourrier/modules/visa/class/IParapheurController.php
diff --git a/modules/visa/class/IParapheurController.php b/modules/visa/class/IParapheurController.php
index 7b0ee3b..4a82b56 100755
--- a/modules/visa/class/IParapheurController.php
+++ b/modules/visa/class/IParapheurController.php
@@ -233,8 +233,15 @@ class IParapheurController
return false;
}
- $response = $curlReturn['response']->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children('http://www.adullact.org/spring-ws/iparaphe
-
+try {
+ if (is_bool($curlReturn['response']) === true) {
+ echo "error" . PHP_EOL;
+ break;
+ }
+ $response = $curlReturn['response']->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children('http://www.adullact.org/spring-ws/iparapheur/1.0')->Ge
+} catch (Exception $e) {
+ echo 'Exception : ', $e->getMessage(), "\n";
+}
if ($response->MessageRetour->codeRetour == $aArgs['config']['data']['errorCode']) {
// TODO gestion d'une potentielle erreur
echo 'retrieveSignedMails noVersion : [' . $response->MessageRetour->severite . ']' . $response->MessageRetour->message;
~~~

ça permet de ne pas faire planter tous les courriers signés à récupérer si l'un d'entre eux est vérolé.

~~~ xml
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 181
Warning: simplexml_load_string(): Formule de politesse avec Madame la Présidente</ns2:annotation></ns2:LogDossier in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 181
Warning: simplexml_load_string(): ^ in /var/www/html/MaarchCourrier1810/src/core/models/CurlModel.php on line 181
~~~

voici le contenu complet du XML qui plante :

~~~ xml
Formule de politesse avec Madame la Présidente</ns2:annotation>
</ns2:LogDossier>
<ns2:MessageRetour>
<ns2:codeRetour>OK</ns2:codeRetour>
<ns2:message></ns2:message>
<ns2:severite>INFO</ns2:severite>
</ns2:MessageRetour>
</ns2:GetHistoDossierResponse>
</S:Body>
</S:Envelope>
~~~

Retour