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

Broken links UI Item generates invalid XML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.2.0
    • 2.9.19
    • Plugins (others)
    • None

      When a content contains broken links, the "broken links information" UI Item generates XML that is not parseable.

      This is what is generated by the UI Item instance :

      ...
      <UIItem>
          <Label/>
          <Description>...</Description>
          ...
          <Action plugin="docbook">
              <ClassName>ANWRT_BrokenLinks</ClassName>
              <Parameters>
                  </upmc-cms/default/fr/rubrique/contenuasupprimer.html>un petit lien cassé
                  <//upmc-cms/default/fr/rubrique/contenuasupprimer.html>
                  </upmc-cms/modules/resources/download/default/brokenlinks/testdoc.doc>brokenlinks/testdoc.doc
                  <//upmc-cms/modules/resources/download/default/brokenlinks/testdoc.doc>
              </Parameters>
              <Imports>
                  <Import>/plugins/docbook/resources/js/brokenlinks/brokenlinks.js.i18n</Import>
              </Imports>
          </Action>
      </UIItem>
      ...
      

      Obviously, parameters are invalid, the broken link path should be saxed as an attribute, as the content of a child tag or the content of another parameter...

      This is not critical since contents are rendered correctly, but this makes cocoon-view=xml unusable in contents that contains broken links, as the browser tries to interpret the generated XML.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: