There is 1 comment.
 
 
System Properties Updater / cid:jira-generated-image-avatar-6978480c-7c74-4ebb-8954-7a6058148208 SYSPROP-6 Open

The update of XWiki object properties is not working on XWiki 17.10.3+

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-b052851d-676c-4c67-8a35-a0d95c35a63c Mohamed Boussaa on 10/Mar/26 10:51
 

The extension updates an object property only if the new value is different from the current property value to avoid unwanted history entries, so, to compare the old value with the new one, the code is comparing the property object (object.get('propertyName')) before and after the new value is set instead of comparing the current property value with the new value. So, due to recent changes on the platform this code stopped working. Basically, the 2nd part of this condition is never meet.

Note that comparing the property objects instead of comparing the values is not reliable and was just lucky that it worked on older XWiki versions.

So, the code should be fixed to compare the values instead.