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

XWikiDocument context document switch shoud take into account secure doc (sdoc)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.3-milestone-1
    • 6.2.1
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Right now when calling XWiki#getRenderedContent (which is supposed to be executed in the context of the document), if anything set a secure doc in the context before, the programing right will be checked on that secure doc instead of the content document (so really not the expected one).

      Same issue but even worst with the hacky "lets temporary change the context document content author" that we can't easily work around (without some very crappy stuff like reloading the document from the DB). But this one should be fixed everywhere anyway (see XWIKI-11223 for example).

      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: