Details
-
Improvement
-
Resolution: Fixed
-
Major
-
4.0-milestone-1
-
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.