Projet

Général

Profil

Anomalie #20012

Mis à jour par Etienne FAMERY il y a environ 2 ans

Lorsqu'on essaye de télécharger le dossier complet ou le faisceau de preuve d'un document dans MaarchParapheur, on a une erreur 500 quand dans les métadonnées associées au courrier contiennent un destinataire :
![](erreur_dest_dl_document.png)

Modification du vhost pp_mp_2103 :

~~~ text
<Directory "/var/www/html/pp_cnam_mp">
SetEnv CONFIG_DIR "/var/www/html/mp2103/config/pp_cnam/"
SetEnv MAARCH_TMP_DIR "/opt/maarch"
~~~

Le faisceau de preuve est bien crée :

~~~ text
-rw-r--r--. 1 maarch maarch 3065 2 mars 16:36 /opt/maarch/maarchProof1_1194111299.xml
~~~

On a touours l'erreur :
![](cannot_load_file_1.png)
![](cannot_load_file.png)

Test de lecture du fichier xml :

~~~ php
libxml_use_internal_errors(true);
$sxe = simplexml_load_string("<?xml version='1.0'><broken><xml></broken>");
if ($sxe === false) {
echo "Erreur lors du chargement du XML\n";
foreach(libxml_get_errors() as $error) {
echo "\t", $error->message;
}
}
~~~

Erreur retourné :

~~~ text
Erreur lors du chargement du XML
error parsing attribute name
attributes construct error
Couldn't find end of Start Tag Destinataire line 2
expected '>'
Opening and ending tag mismatch: data line 2 and Destinataire
Opening and ending tag mismatch: History line 2 and data
Opening and ending tag mismatch: root line 2 and History
Extra content at the end of the document
~~~


### Suppression des balises <destinataire(s)> :

~~~ text
<Destinataire(s)>BERTRAND BROGNIART</Destinataire(s)> :
~~~

==> lecture du fichier XML OK

**=> Les parenthèses dans le nom de la balise XML provoque l'erreur.**

Retour