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

Rendering errors are not accurate in restricted context

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      • in a comment enter the content
        {{groovy}}print "toto"{{/groovy}}
        
      • save

      -> you end up with

      Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
      

      instead of the expected

      Failed to execute the [groovy] macro. Cause: [The execution of the [groovy] script macro is not allowed in [xwiki:Main.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
      

      Regression caused by XRENDERING-621: since the default error displayer is implemented in a template and use a velocity macro, it's broken by the restricted context...

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: