Description
Because of XWIKI-18477 the page translation REST resource returns empty default locale for any page translation that was created by the user. In order to determine the default locale you need to make another HTTP request for the original document which is a pain and a waist of resources and time.
For instance, create the Romanian translation forĀ Sandbox.TestPage1 and then access:
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/TestPage1/translations/ro?media=json
The default translation is empty. You need to make another call to:
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/TestPage1?media=json
in order to determine the actual default locale.
Attachments
Issue Links
- blocks
-
XWIKI-17593 The view UI is not modified after saving when using the in-place editing
- Closed
- is related to
-
XWIKI-17285 The page REST resource doesn't always include the default page language
- Closed
- relates to
-
XWIKI-18477 Default locale is not always set for document translations
- Open