[xwiki/xwiki-platform] e8cb7e: XWIKI-25199: PasswordClass related error when logi...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: e8cb7e6ff46e7f80226d62c9e1dec6ee751c3020 https://github.com/xwiki/xwiki-platform/commit/e8cb7e6ff46e7f80226d62c9e1dec... 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/R180900000XWIKI25199DataMigration.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/R180800000XWIKI24357DataMigrationTest.java A xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/migration/R180900000XWIKI25199DataMigrationTest.java Log Message: ----------- XWIKI-25199: PasswordClass related error when login with Admin after an instance upgrade (#6639) * Add R180900000XWIKI25199DataMigration to execute again both migrations, to fix the passwords already put back in their legacy storage * Log the actual legacy algorithm (e.g. SHA-512) instead of XWikiLegacy for passwords not re-encoded yet, and log the reference of the property holding the password instead of the class one * Provide PasswordClass#arePasswordsMatching(String, String, EntityReference) to give the location of the password * 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) --------- 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