From 9d2134e064d29d06b43b569f71470768c6ac4d3d Mon Sep 17 00:00:00 2001 From: Simon Urli Date: Mon, 15 Jan 2024 16:10:16 +0100 Subject: [PATCH] XWIKI-21738: Remove uselocastore/usemainstore configurations for better maintenance * Fix migration issue --- .../filters/migration/R160000001XWIKI21738DataMigration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000001XWIKI21738DataMigration.java b/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000001XWIKI21738DataMigration.java index dfdc95ca3b25..141714f65a20 100644 --- a/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000001XWIKI21738DataMigration.java +++ b/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000001XWIKI21738DataMigration.java @@ -171,10 +171,10 @@ private void migrateFilters(List filters) try { if (entityReference.getType() == EntityType.DOCUMENT) { this.filterPreferenceStore - .saveFilterPreferences((DocumentReference) entityReference, entry.getValue()); + .saveFilterPreferences(new DocumentReference(entityReference), entry.getValue()); } else { this.filterPreferenceStore - .saveFilterPreferences((WikiReference) entityReference, entry.getValue()); + .saveFilterPreferences(new WikiReference(entityReference.getName()), entry.getValue()); } } catch (NotificationException e) { throw new DataMigrationException(