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

No extra right check in script API when accessing deleted documents

    XMLWordPrintable

Details

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

    Description

      Steps to reproduce:

      1. Create a document that has restricted view right and delete it again.
      2. As a user with script right but no view right on that deleted document (but view right on its space), access the deleted document through XWiki#getDocument(DocumentReference reference, String revision).

      Expected result:

      An exception is thrown.

      Actual result:

      The deleted document is returned.

      This has probably been introduced in XWIKI-14252 which introduced the deleted:-prefix for revisions, so most likely this affects 9.4RC1.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: