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

Viewing a deleted document as guest redirects to login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.7
    • Fix Version/s: 9.8-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Since guests can otherwise view non-existing documents and documents in general, this behavior is unexpected. The cause is the wrong usage of `checkAccess` instead of `hasAccess` in `c.x.x.api.DeletedDocument#canDelete`.

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: