Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
7.3
-
None
-
Unknown
-
Description
Steps to reproduce:
- Create a hidden page
- Execute the following snippet in the browser's console:
fetch(require('xwiki-meta').restURL, { method: 'PUT', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify({ content: 'Updated content' }) }) .then(response => response.json()) .then(json => { console.log('Response:', json); }) .catch(error => { console.error('Error sending PUT request:', error); });
Expected result:
The page is still hidden but its content is now "Updated content".
Actual result:
The page is no longer hidden and its content is now "Updated content":
The code that causes this has been introduced in XWIKI-12783.