Branch: refs/heads/stable-14.10.x Home: https://github.com/xwiki/xwiki-platform Commit: 0bc27d6ec63c8a505ff950e2d1792cb4f773c22e https://github.com/xwiki/xwiki-platform/commit/0bc27d6ec63c8a505ff950e2d1792... Author: Michael Hamann <michael.hamann@xwiki.com> Date: 2024-01-16 (Tue, 16 Jan 2024) Changed paths: A xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/document/DocumentOverrideListener.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/META-INF/components.txt A xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/document/DocumentOverrideListenerTest.java Log Message: ----------- XWIKI-21553: Do not override existing documents on user action (#2790) * Introduce a new listener to cancel any save that would delete the document. * Add a unit test. (cherry picked from commit c5efc1e519e710afdf3c5f40c0fcc300ad77149f) Commit: f140102575cbdbb5a517caf51270fa669df23667 https://github.com/xwiki/xwiki-platform/commit/f140102575cbdbb5a517caf51270f... Author: Michael Hamann <michael.hamann@xwiki.com> Date: 2024-01-16 (Tue, 16 Jan 2024) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/document/DocumentOverrideListenerTest.java Log Message: ----------- XWIKI-21553: Do not override existing documents on user action * Remove mock() call not available in 14.10.x * Use constants for user and document reference in the test Compare: https://github.com/xwiki/xwiki-platform/compare/1e535db87ef9...f140102575cb