Branch: refs/heads/stable-16.10.x Home: https://github.com/xwiki/xwiki-platform Commit: 703af2d9451e193c38883b76857ed17e2597b750 https://github.com/xwiki/xwiki-platform/commit/703af2d9451e193c38883b76857ed... Author: Vincent Massol <[email protected]> Date: 2026-09-04 (Fri, 04 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/objects/BaseCollectionTest.java Log Message: ----------- [Misc] Fix three SonarQube javabugs:S2259 null dereferences in oldcore (#6299) * BaseCollection: getPropertyDisplayValue() and the plain-value branch beside it dereferenced a property that addOrChangePropertyDiff() explicitly allows to be null. Report the missing property as an empty value, which is how that caller's own comparison already treats it. * XWikiDocument#display(): the @Nullable getXWikiContext() result was passed straight to getTranslatedDocument(XWikiContext), which dereferences it. Require it up front instead, since the translated content, the rendering cache and the display all read from it. * XWikiDocument#restoreContext(): the context read back from the Execution Context by its callers can be missing. Require it after the pop, so that backupContext()'s push is undone whatever happens next, and mirror the requirement backupContext() already makes. Co-authored-by: Claude Opus 5 (1M context) <[email protected]> (cherry picked from commit 990045e2566ce765546c4e616a56fe2c4fcab67c) Commit: daaf674526a702ea002c187a7ac0c029987b29ee https://github.com/xwiki/xwiki-platform/commit/daaf674526a702ea002c187a7ac0c... Author: Thomas Mortagne <[email protected]> Date: 2026-09-04 (Fri, 04 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java Log Message: ----------- XWIKI-24747: Improve user document events handling XWIKI-24780: A listener cannot modify a renamed document through DocumentUpdating/CreatingEvent XWIKI-24791: A rename always produce a DocumentCreating/edEvent even when the target location already exist XWIKI-24794: Only cancel forbidden right changes instead of all of them * fix bad merge Compare: https://github.com/xwiki/xwiki-platform/compare/bec90afb0e6c...daaf674526a7 To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications