[xwiki/xwiki-platform] ea055c: [stable-18.4.x] XWIKI-25199: PasswordClass related...
Branch: refs/heads/stable-18.4.x Home: https://github.com/xwiki/xwiki-platform Commit: ea055c37a7068bf08964a57bcb6568b355a1f9fc https://github.com/xwiki/xwiki-platform/commit/ea055c37a7068bf08964a57bcb656... Author: Simon Urli <[email protected]> Date: 2026-10-08 (Thu, 08 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/PasswordClass.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/migration/R180100000XWIKI23827DataMigration.java A xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/migration/R180407000XWIKI25199DataMigration.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/META-INF/components.txt M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/objects/BaseCollectionTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/objects/classes/PasswordClassTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/migration/R180100000XWIKI23827DataMigrationTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/migration/R180405000XWIKI24357DataMigrationTest.java A xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/migration/R180407000XWIKI25199DataMigrationTest.java Log Message: ----------- [stable-18.4.x] XWIKI-25199: PasswordClass related error when login with Admin after an instance upgrade (#6648) * Add R180407000XWIKI25199DataMigration to execute again R180100000XWIKI23827DataMigration and R180405000XWIKI24357DataMigration, to fix the passwords put back in their legacy storage by a user profile cached before them and saved after them (the cache is now flushed after each migration since XWIKI-25203) * Log the actual legacy algorithm (e.g. SHA-512) instead of XWikiLegacy for passwords not re-encoded yet * Stop logging twice the usage of a deprecated algorithm when computing a hash * Add tests * Only select the objects still holding a StringProperty for one of the password fields in the password storage migration, to avoid processing already migrated objects (e.g. when the migration is executed again) * Skip the repair migration for DBs coming from 17.10.14 or a later 17.10.x (password migrations executed with the cache flush of XWIKI-25203) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications