Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13970

Code macro fails to render content if language is set to XML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 8.4.4
    • VMware virtual machine, Ubuntu 16.04, 4 CPU cores, 8GB RAM, Tomcat 8.0.32, OpenJDK 1.8.0_111
    • Unknown

    Description

      Code macro fails to render content if the language is set to the value 'xml'. An error appears in place of each macro:

      Failed to execute the [code] macro. Cause: [String index out of range: 3]. Click on this message for details.

      This was first noticed when upgrading an old wiki from version 6 but I have just reproduced the issue on a fresh 8.4.4 installation with absolutely no customisation. It is annoying as it does mean that existing content in our documents matching these conditions no longer displays, so we have to modify each page to set the language to none or plain to work around the problem.

      I've attached the full error output text.

      Attachments

        1. error.txt
          29 kB
          Jeremy Lamb
        2. language set to none.png
          22 kB
          Jeremy Lamb
        3. language set to xml.png
          34 kB
          Jeremy Lamb

        Activity

          People

            tmortagne Thomas Mortagne
            nzlamb Jeremy Lamb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: