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

Cannot enable all the available syntaxes from the administration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 8.2-milestone-1
    • Rendering
    • Unknown
    • N/A
    • N/A

    Description

      Go to the Wiki Administration > Editing > Syntaxes section and uncheck all disabled syntaxes. Then edit a wiki page using the Wiki editor and check the syntax drop down from the Document Information panel. Instead of listing all the enabled syntaxes it lists only "XWiki 2.1". If you put the following script in a wiki page:

      {{velocity}}
      $services.rendering.disabledSyntaxes
      {{/velocity}}
      

      you'll get:

      [Plain 1.0, XML based XDOM current, Markdown 1.2, XHTML 1.0, XWiki 2.0]
      

      although we previously unchecked all of them from the list of disabled syntaxes.

      The problem seems to be in DefaultExtendedRenderingConfiguration#getDisabledSyntaxes() which handles the empty list (our case) as if the configuration is missing and falls back on xwiki.cfg

      // If not found, look in the xwiki cfg source for a xwiki.rendering.syntaxes property
      if (disabledSyntaxesAsStrings == null || disabledSyntaxesAsStrings.isEmpty()) {
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: