There are 6 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-82ae9eac-1244-4a4b-8866-e8bcdf40a5f2 XWIKI-18438 Closed

Prevent performing a like when XWiki is readonly

 
View issue   ยท   Add comment
 

6 updates

 
cid:jira-generated-image-avatar-b082868d-a52b-4033-9b0a-6ac684b6efe3 Changes by Charpentier Lucas on 24/Oct/24 16:57
 
Documentation in Release Notes: N/A
Documentation: N/A
Attachment: screenshot-1.png
Assignee: Charpentier Lucas
Resolution: Cannot Reproduce
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-b082868d-a52b-4033-9b0a-6ac684b6efe3 Charpentier Lucas on 24/Oct/24 17:02
 

Testing in XWIKI-16.9.0-SNAPSHOT. It seems like the right is properly applied.
When the wiki is in readonly, the button to like the page is still here to display the amount of likes, however it's disabled and won't do anything on a click.
If somehow we remove the disabled state from this button, we can still `click` it. It sends the POST request, but this POST request does not have any effect on the Liker list of the page...
I tested and this happens both when setting the xwiki.cfg `xwiki.readonly=true` and using a script to switch the value of the readonly mode at runtime.

I'll close this bug as `Cannot reproduce`. As far as I understand, there's no issue with the like feature and the readonly mode anymore.

_thumb_42869.png

Simon Urli Feel free to reopen it with more detail if I misunderstood something.