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

When passing a description String instead of property name, the Feed plugin renders it in syntax 1.0 instead of using the document's syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2 M3
    • 3.1
    • Old Core
    • None
    • feed plugin bug render patch
    • Unknown

    Description

      Currently, in SyndEntryDocumentSource.parseString, the syntax ID to use for rendering is not specified and it defaults to Syntax1.0 because the deprecated method Document.getRenderedContent(String) is used:

      return doc.getRenderedContent(mapping.substring(1, mapping.length() - 1));
      

      A simple fix would be:

      return doc.getRenderedContent(mapping.substring(1, mapping.length() - 1), doc.getSyntax().toIdString());
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: