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

Unable to use in inline edit mode a template document containing code even if the current user has Script Rights

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2-milestone-1
    • Fix Version/s: 7.2-milestone-2
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:
      1. Create a Main.Template document containing some velocity code:

      {{velocity}}
      $doc
      {{/velocity}}
      

      2. Try to edit in inline mode a new document Main.NewDoc, using Main.Template as template: http://localhost:8080/xwiki/bin/edit/Main/NewDoc?template=Template&parent=Main.WebHome&title=NewDoc&editor=inline
      3. You will get an exception:

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: