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

Source of the error message is not displayed in the WYSIWYG editor when executing a script without scripting rights

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.8-rc-1
    • Fix Version/s: 11.9
    • Component/s: Rendering
    • Environment:
      Windows 10 Pro 64 bit, Chrome 77, using a local instance XWiki 11.8 RC1 on MySQL 5.7
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Login as Admin
      2. Create an user (U1)
      3. Go to Administer Wiki > Users & Rights > Rights
      4. Deny the Script right for U1
      5. Create a page (e.g. Pag1)
      6. Insert a Velocity Macro (or other macro requiring script rights) and save the page
      7. Login with U1
      8. Edit the page containing the macro
      9. Check the result in the WYSIWYG editor

      EXPECTED RESULTS

      Due to the fact that U1 has no script rights, there is an error message that also contains the source of this error:

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

      ACTUAL RESULTS

      The error message does not display the source:

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                iandriuta Ilie Andriuta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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