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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-milestone-1
    • Fix Version/s: 4.0-milestone-2
    • Component/s: Annotations
    • Labels:
      None
    • keywords:
      annotation rest context initialization
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: