Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-1019

L'import CDM-fr plante à cause d'une mauvaise URL d'image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.2, 2.4.0
    • 2.3.0
    • None
    • None

      Dans mon fichier CDM-fr, j'ai une image dans un infoblock avec une src qui ne pointe pas sur une image (http://www.mondomaine.fr).
      L'import s'arrête avec une erreur au moment de sauver la formation en question :

      2015-04-16 11:43:49,412 ERROR [org.ametys.plugins.odfsync.cdmfr.CDMSynchronizationHelper] (http-bio-8080-exec-10;/bo/_odf-sync/upload-cdm) A problem occured during the treatment of the rich-text field teachingOrganization into the node programContent://45cce7e6-cb17-45a7-b704-f675910ad318
      org.ametys.plugins.repository.AmetysRepositoryException: javax.jcr.RepositoryException: Failed to resolve path  relative to node /ametys:root/ametys:odf/ametys:contents/42/e4/program-fruai0311382j61431187/ametys:teachingOrganization_remote/data
      	at org.ametys.plugins.repository.metadata.jcr.JCRFolder.hasFile(JCRFolder.java:171)
      	at org.ametys.plugins.odfsync.cdmfr.CDMSynchronizationHelper._fetchImages(CDMSynchronizationHelper.java:950)
      	at org.ametys.plugins.odfsync.cdmfr.CDMSynchronizationHelper.synchronizeRichTextMetadata(CDMSynchronizationHelper.java:874)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeSingleMetadata(AbstractCDMFrManager.java:589)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeMetadata(AbstractCDMFrManager.java:378)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeContent(AbstractCDMFrManager.java:256)
      	at org.ametys.plugins.odfsync.cdmfr.CDMFrImportManager.importPrograms(CDMFrImportManager.java:214)
      	at org.ametys.plugins.odfsync.cdmfr.RemoteCDMFRImportManager.importPrograms(RemoteCDMFRImportManager.java:68)
      	at org.ametys.plugins.odfsync.cdmfr.UploadCDMAction.act(UploadCDMAction.java:68)
      Caused by: javax.jcr.RepositoryException: Failed to resolve path  relative to node /ametys:root/ametys:odf/ametys:contents/42/e4/program-fruai0311382j61431187/ametys:teachingOrganization_remote/data
      	at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:239)
      	at org.ametys.plugins.repository.metadata.jcr.JCRFolder.hasFile(JCRFolder.java:167)
      	... 52 more
      Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty path
      	at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:212)
      	at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:338)
      	at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
      	... 55 more
      	
      	
      	
      	
      	
      2015-04-16 14:01:15,282 ERROR [sitemap.handled-errors] (http-bio-8080-exec-7;/bo/_odf-sync/upload-cdm) Sitemap: error when calling sub-sitemap
      	at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:198:101
      org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
      	at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:198:101
      Caused by: org.ametys.plugins.repository.AmetysRepositoryException: Unable to save changes
      	at org.ametys.plugins.repository.jcr.SimpleAmetysObject.saveChanges(SimpleAmetysObject.java:243)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.applyChanges(AbstractCDMFrManager.java:1436)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeMultipleMetadata(AbstractCDMFrManager.java:435)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeMetadata(AbstractCDMFrManager.java:374)
      	at org.ametys.plugins.odfsync.cdmfr.AbstractCDMFrManager.synchronizeContent(AbstractCDMFrManager.java:256)
      	at org.ametys.plugins.odfsync.cdmfr.CDMFrImportManager.importPrograms(CDMFrImportManager.java:214)
      	at org.ametys.plugins.odfsync.cdmfr.RemoteCDMFRImportManager.importPrograms(RemoteCDMFRImportManager.java:68)
      	at org.ametys.plugins.odfsync.cdmfr.UploadCDMAction.act(UploadCDMAction.java:68)
      	... 33 more
      Caused by: javax.jcr.nodetype.ConstraintViolationException: /ametys:root/ametys:odf/ametys:contents/42/e4/program-fruai0311382j61431187/ametys:teachingOrganization_remote: mandatory property {http://www.jcp.org/jcr/1.0}data does not exist
      	at org.apache.jackrabbit.core.ItemSaveOperation.validateTransientItems(ItemSaveOperation.java:537)
      	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
      	at org.ametys.plugins.repository.jcr.SimpleAmetysObject.saveChanges(SimpleAmetysObject.java:239)
      	... 51 more
      

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: