Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8291

XML export with metadata of linked contents failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.0RC4
    • Plugin : Search
    • None

      With the search model configured with metadata of link contents as columns as following:

      <column metadata-ref="adressePrincipale/commune/faitPartieDepartement">
                      <label>Département</label>
                      <width>160</width>
                  </column>
                  <column metadata-ref="adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie">
                      <label>Académie</label>
                      <width>160</width>
                  </column>
      

      The XML export failed because these columns are exported with a tag with / :

      <content id="content://6c1b425c-a67d-464f-a312-9ef3b52a96e4" name="association-internationale-des-etudiants-en-sciences-economiques-et-commerciales" title="Association internationale des étudiants en sciences économiques et commerciales AIESEC 75019 Paris" language="fr" smallIcon="/plugins/cms/content-types_resources/ideo-structures/resources/img/content/group_structure_16.png" mediumIcon="/plugins/cms/content-types_resources/ideo-structures/resources/img/content/group_structure_32.png" largeIcon="/plugins/cms/content-types_resources/ideo-structures/resources/img/content/group_structure_48.png">
          <values>
            <title>Association internationale des étudiants en sciences économiques et commerciales AIESEC 75019 Paris</title>
            <libelleOfficiel>Association internationale des étudiants en sciences économiques et commerciales</libelleOfficiel>
            <sigle>AIESEC</sigle>
            <adressePrincipale/commune/faitPartieDepartement>content://0700ee10-25e9-4571-a09c-04e6f69a274f</adressePrincipale/commune/faitPartieDepartement>
            <adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie>content://cd0d18f9-b1ab-48b7-8e97-e5990d6b240e</adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie>
            <adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie/faitPartieRegion>content://b20b4773-9cc3-4030-b886-74bf6ca72157</adressePrincipale/commune/faitPartieDepartement/faitPartieAcademie/faitPartieRegion>
            <contentTypes>
              <value>content-type.FederationEcoles</value>
            </contentTypes>
            <mixins/>
            <contributor>IDEO2#utilisateurs-ideo2</contributor>
            <creationDate>2017-05-12T15:59:08.71+02:00</creationDate>
            <workflowStep>3</workflowStep>
          </values>
        </content>
      

      The XML should be:

      <adressePrincipale>
          <commune id="content://909fc24f-cea9-43be-bfdd-890bc2425f8b" name="paris-14" title="Paris" language="fr" createdAt="2017-03-07T14:01:05.530+01:00" creator="IDEO2" lastModifiedAt="2017-03-07T14:01:05.579+01:00">
              <faitPartieDepartement id="content://7c1624d8-8e78-4a4f-9abe-3cfcb9d46b3a" name="paris-2" title="Paris" language="fr" createdAt="2017-03-07T12:14:33.389+01:00" creator="IDEO2" lastModifiedAt="2017-03-07T15:03:26.172+01:00">
                      <faitPartieAcademie id="content://958b4858-6dd8-4d3c-ad4d-d190cf7fde0e" name="paris" title="Paris" language="fr" createdAt="2017-03-07T12:14:14.600+01:00" creator="IDEO2" lastModifiedAt="2017-03-07T12:14:41.418+01:00">
                              <faitPartieRegion id="content://1b147de5-d367-4c24-9094-9e1b5bc82972" name="ile-de-france" title="Ile-de-France" language="fr" createdAt="2017-03-07T12:14:06.659+01:00" creator="IDEO2" lastModifiedAt="2017-03-07T15:08:28.450+01:00"/>
                      </faitPartieAcademie>
              </faitPartieDepartement>
          </commune>
      </adressePrincipale>
      

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: