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

The Annotations REST resources do not set the context to the wiki and page where the REST call was made

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.0-milestone-2
    • 4.0-milestone-1
    • Annotations
    • None
    • annotation rest context initialization
    • Unknown

    Description

      This means that all the components that are called by the REST resources can not use the context (in a component way) and have to receive the wiki,space,page PATH variables as arguments and compute the "target" (current document reference).

      The proposal is that, at the beginning of the GET/PUT method implementation of the REST resources, the current document is retrieved from the PATH variables and it is set into the context (including the context database). This way the context is properly initialized and now usable.

      Attachments

        Activity

          People

            enygma Eduard Moraru
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: