This issue has been created
There are 4 updates.
 
 
Cristal / cid:jira-generated-image-avatar-77037fd5-6bb8-4d14-9cc5-7b0be09cb29c CRISTAL-872 Open

Support XWiki backends older than 18.2 through a build-time flag

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b44fb927-0a12-43c9-8268-4cf25fd9abc4 Manuel Leduc created this issue on 03/Nov/26 15:32
 
Summary: Support XWiki backends older than 18.2 through a build-time flag
Issue Type: cid:jira-generated-image-avatar-77037fd5-6bb8-4d14-9cc5-7b0be09cb29c Improvement
Affects Versions: 1.9.0
Assignee: Unassigned
Components: Backend - XWiki
Created: 03/Nov/26 15:32
Priority: cid:jira-generated-image-static-major-d9159c94-7ad4-4769-be90-5f9b54be01b7 Major
Reporter: Manuel Leduc
Description:

Problem

Since CRISTAL-795 and CRISTAL-812, the XWiki backend reads the edit right and the rendered content of a page from the checkRight and supportedSyntax parameters of the page REST resource. XWiki supports them only since 18.1.0 and 18.2.0. Against an older XWiki, such as the 17.10 LTS line:

  • the Edit action is never offered, even to a logged-in user with edit right;
  • pages that are not in Markdown, such as xwiki/2.1 pages, are displayed as raw source (for instance = Title = instead of a heading).

This is the case of https://cristal.demo.xwiki.com/, whose backend cannot be upgraded past 17.10.

Proposal

Add a build-time flag, VITE_CRISTAL_XWIKI_LEGACY_REST=true. When it is set and the page REST resource does not return the edit right or the rendered content, read them from the /rest/cristal/wikis/<wiki>/spaces/<space>/pages/<page>?format=jsonld endpoint of cristal-integration-rest-server (versions 1.4.0 and older; 1.0.0 to 1.3.0 support XWiki 16.x and 17.x).

The flag is off by default: the published packages and the default builds are not affected.

 
 

4 updates

 
cid:jira-generated-image-avatar-b44fb927-0a12-43c9-8268-4cf25fd9abc4 Changes by Manuel Leduc on 03/Nov/26 15:32
 
Fix Version: 1.9.1
Attachment: CRISTAL-872-before.png
Attachment: CRISTAL-872-after.png
Assignee: Manuel Leduc