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

Deprecate XWiki.parseContent since it is misleading and outdated

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      XWiki.parseContent is a leftover method that on one side says it only parses velocity code, but in reality it delegates to the old rendering which runs all the old renderers on the passed content, this includes velocity, groovy and 1.0 syntax.

      Thus, we should deprecate it and use the individual rendering/parsing options based on what we want:

      • #evaluate(...) for velocity code
      • $services.rendering.parse/render for wiki syntaxes
      • $xwiki.parseGroovyFromString() for groovy
      • etc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d