If I have added a notification for a certain page and then go to my user profile, section "Notifications" to remove it, I get an error that the notification cannot be removed.
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'deleteFilterPreference' in class org.xwiki.notifications.filters.script.NotificationFiltersScriptService threw exception org.xwiki.notifications.NotificationException: Cannot guess internal id of preference with id [watchlist_PAGE_8c0c7a42827cd6728bfca4f89ca76a7c3396451288b1e0712ed59b17d173b693].
at xwiki:XWiki.Notifications.Code.NotificationPreferenceService[line 56, column 32]
[...]
at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.xwiki.notifications.NotificationException: Cannot guess internal id of preference with id [watchlist_PAGE_8c0c7a42827cd6728bfca4f89ca76a7c3396451288b1e0712ed59b17d173b693].
at org.xwiki.notifications.filters.internal.NotificationFilterPreferenceStore.getInternalIdFromId(NotificationFilterPreferenceStore.java:303)
at org.xwiki.notifications.filters.internal.NotificationFilterPreferenceStore.deleteFilterPreferences(NotificationFilterPreferenceStore.java:240)
at org.xwiki.notifications.filters.internal.DefaultFilterPreferencesModelBridge.deleteFilterPreferences(DefaultFilterPreferencesModelBridge.java:152)
at org.xwiki.notifications.filters.internal.CachedFilterPreferencesModelBridge.deleteFilterPreferences(CachedFilterPreferencesModelBridge.java:160)
at org.xwiki.notifications.filters.internal.UserProfileNotificationFilterPreferenceProvider.deleteFilterPreferences(UserProfileNotificationFilterPreferenceProvider.java:87)
at org.xwiki.notifications.filters.internal.DefaultNotificationFilterPreferenceManager.deleteFilterPreferences(DefaultNotificationFilterPreferenceManager.java:184)
at org.xwiki.notifications.filters.internal.DefaultNotificationFilterPreferenceManager.deleteFilterPreference(DefaultNotificationFilterPreferenceManager.java:173)
at org.xwiki.notifications.filters.script.NotificationFiltersScriptService.deleteFilterPreference(NotificationFiltersScriptService.java:280)
at jdk.internal.reflect.GeneratedMethodAccessor6181.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
at org.xwiki.velocity.introspection.MethodArgumentsUberspector$ConvertingVelMethod.invoke(MethodArgumentsUberspector.java:306)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221) ... 233 more
If I do the same via the "bell" icon on the page, no error message appears, but after I reload the page, the notification is still there. This behavior is not reproducible with XWiki 14.10.20 |