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

L'export ODF SQL échoue car il ne gère pas les champs de type geocode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.2, 2.5.2
    • 2.5.1
    • None
    • None

      J'ai surchargé le modèle de données standard et ajouté un champ de type "geocode", l'export plante sur ce champ :

      2016-04-14 11:24:22,119 ERROR [org.ametys.odf.export.ODFExportEngine] (ODFExportEngine;/tlseing-cms/plugins/core/servercomm/messages.xml) ODF export has failed
      org.ametys.plugins.repository.metadata.UnknownMetadataException: javax.jcr.PathNotFoundException: ametys:campus
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata._getString(JCRCompositeMetadata.java:353)
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata.getString(JCRCompositeMetadata.java:318)
      	at org.ametys.odf.export.ExportManager.fillColumnForStringMetadata(ExportManager.java:1709)
      	at org.ametys.odf.export.ExportManager.fillMetadata(ExportManager.java:1255)
      	at org.ametys.odf.export.ExportManager.fillCompositeMetadata(ExportManager.java:1159)
      	at org.ametys.odf.export.ODFExportManager.fillCompositeMetadata(ODFExportManager.java:448)
      	at org.ametys.odf.export.ExportManager.fillTableForRepeater(ExportManager.java:1121)
      	at org.ametys.odf.export.ExportManager.fillMetadata(ExportManager.java:1284)
      	at org.ametys.odf.export.ExportManager.fillCompositeMetadata(ExportManager.java:1159)
      	at org.ametys.odf.export.ODFExportManager.fillCompositeMetadata(ODFExportManager.java:448)
      	at org.ametys.odf.export.ExportManager.fillTableForContentType(ExportManager.java:1082)
      	at org.ametys.odf.export.ExportManager.insertValues(ExportManager.java:1040)
      	at org.ametys.odf.export.ExportManager.export(ExportManager.java:222)
      	at org.ametys.odf.export.ODFExportEngine.export(ODFExportEngine.java:186)
      	at org.ametys.odf.export.ODFExportEngine.run(ODFExportEngine.java:104)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.jcr.PathNotFoundException: ametys:campus
      	at org.apache.jackrabbit.core.NodeImpl$11.perform(NodeImpl.java:2234)
      	at org.apache.jackrabbit.core.NodeImpl$11.perform(NodeImpl.java:2221)
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      	at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2221)
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata._getString(JCRCompositeMetadata.java:331)
      	... 15 more
      

      Il s'agit précisément d'un geocode dans un repeater, mais il semblerait que ça soit le geocode qui plante "campus"

      <cms:repeater name="geolocation" initial-size="0">
              <label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION</label>
              <description i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_DESC</description>
              <cms:add-label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_ADD</cms:add-label>
              <cms:del-label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_DEL</cms:del-label>
      	    <cms:metadata name="campus" type="geocode">
      	        <label i18n="true">plugin.default-ctypes:CONTENT_NEWS_CAMPUS</label>
      	        <description i18n="true">plugin.default-ctypes:CONTENT_NEWS_CAMPUS_DESC</description>
      	    </cms:metadata>
          </cms:repeater>
      

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

              Created:
              Updated:
              Resolved: