[xwiki/xwiki-platform] 952247: XWIKI-24747: Improve user document events handling
Branch: refs/heads/stable-16.10.x Home: https://github.com/xwiki/xwiki-platform Commit: 952247add7f9a47eefac2b5f9169d2b023f45c3a https://github.com/xwiki/xwiki-platform/commit/952247add7f9a47eefac2b5f9169d... Author: Thomas Mortagne <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/XWikiTest.java M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/main/java/org/xwiki/security/authorization/internal/RightsFilterListener.java M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/test/java/org/xwiki/security/authorization/internal/RightsFilterListenerTest.java Log Message: ----------- XWIKI-24747: Improve user document events handling XWIKI-24780: A listener cannot modify a renamed document through DocumentUpdating/CreatingEvent * added a hack which modify the document with changes made by listener right before the actual store rename, with with dirty=false and skipping events so that in the end it looks like it was modified as part of the rename * modify RightsFilterListener to apply filtering also during renames, now that it's possible XWIKI-24791: A rename always produce a DocumentCreating/edEvent even when the target location already exist * use the document currently located at the target as original document in the simulated renamind/ed XWikiDocument XWIKI-24794: Only cancel forbidden right changes instead of all of them (cherry picked from commit ce147b6da23a354ed498efa5fd8267a1fbd9ea12) (cherry picked from commit 0e8c792b38a5b852bd1d8282b3e622540fcf1e13) To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications