L'import CDM-fr s'arrête et plante sur la balise suivante :
<img alt="" src="/medias/photo/offre-eligible-mcf-carre-fond-bleu-rvb_1624611393914-png?ID_FICHE=30021"/>
l'erreur correspondante
java.lang.IllegalArgumentException: A local image should have a file reference of the form <protocol>://<protocol-specific-part>;<filename> : /medias/photo/offre-eligible-mcf-carre-fond-bleu-rvb_1624611393914-png
at org.ametys.cms.data.RichTextImportHandlerFactory$RichTextImportHandler#_processAttachment:233
at org.ametys.cms.data.RichTextImportHandlerFactory$RichTextImportHandler#startElement:136
at org.apache.xalan.transformer.TransformerIdentityImpl#startElement:1073
at org.apache.xml.serializer.TreeWalker#startNode:359
at org.apache.xml.serializer.TreeWalker#traverse:145
at org.apache.xalan.transformer.TransformerIdentityImpl#transform:390
at org.ametys.cms.data.type.AbstractRichTextElementType#_singleValueFromXML:276
at org.ametys.cms.data.type.AbstractRichTextElementType#_singleValueFromXML:78
at org.ametys.core.model.type.AbstractElementType#valueFromXML:202
at org.ametys.plugins.repository.data.extractor.xml.ModelAwareXMLValuesExtractor#_extractElementValue:404
at org.ametys.plugins.odfsync.cdmfr.extractor.ImportCDMFrValuesExtractor#_extractElementValue:127
at org.ametys.plugins.odfsync.cdmfr.extractor.ImportTraversableProgramPartValuesExtractor#_extractElementValue:146
at org.ametys.plugins.repository.data.extractor.xml.ModelAwareXMLValuesExtractor#_extractElementValue:373
at org.ametys.plugins.repository.data.extractor.xml.ModelAwareXMLValuesExtractor#_extractValues:229
at org.ametys.plugins.repository.data.extractor.xml.ModelAwareXMLValuesExtractor#extractValues:200
at org.ametys.plugins.repository.data.extractor.xml.ModelAwareXMLValuesExtractor#extractValues:116
at org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent#_synchronizeContent:589
at org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent#importOrSynchronizeContent:447
at org.ametys.plugins.odfsync.cdmfr.components.impl.CoAccreditedRemoteImportCDMFrComponent#importOrSynchronizeContent:224
at org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent#handleInputStream:342
at org.ametys.plugins.odfsync.cdmfr.RemoteCDMFrSynchronizableContentsCollection#importContent:89
at org.ametys.plugins.odfsync.cdmfr.actions.UploadCDMFrAction#act:87
Si je transforme le src en ajoutant l'URL absolue, l'import se passe bien :
<img alt="" src="https://www.ut-capitole.fr/medias/photo/offre-eligible-mcf-carre-fond-bleu-rvb_1624611393914-png?ID_FICHE=30021">
L'import devrait ignorer cette balise qui pose problème (la loguer) et poursuivre l'import.
- testing discovered
-
ODF-3725 Perte d'information dans les logs de synchronization CDMfr
- Open