Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
11.2, 10.11.4
-
Windows 10 Pro 64 bit, Edge 18, using a local instance of XWiki 10.11.5 on PostgreSQL 10
-
Unknown
-
N/A
-
N/A
-
Description
STEPS TO REPRODUCE
- Login as Admin
- Set all Notifications to ON
- Watch the wiki
- Login as another user (e.g. U1)
- Create/update/comment/delete a page
- Login as Admin
- Mark 2 events as read
- Refresh the page
EXPECTED RESULTS
The notification list displays 4 events out of which 2 are marked as read.
ACTUAL RESULTS
All events are displayed as unread, even if the counter shows 2. If the events marked as read previously are marked as read once again, the following stacktrace is displayed in console:
2019-04-09 15:18:06,500 [http://localhost:1013/xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?outputSyntax=plain] WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505 2019-04-09 15:18:06,500 [http://localhost:1013/xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?outputSyntax=plain] ERROR o.h.u.JDBCExceptionReporter - Batch entry 0 insert into activitystream_events_status (ases_read, ases_eventid, ases_entityid) values ('TRUE', '2011965706-1554799477000-zYAv5tRK', 'xwiki:XWiki.ILIE') was aborted: ERROR: duplicate key value violates unique constraint "activitystream_events_status_pkey" Detail: Key (ases_eventid, ases_entityid)=(2011965706-1554799477000-zYAv5tRK, xwiki:XWiki.ILIE) already exists. Call getNextException to see other errors in the batch. 2019-04-09 15:18:06,505 [http://localhost:1013/xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?outputSyntax=plain] WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505 2019-04-09 15:18:06,506 [http://localhost:1013/xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?outputSyntax=plain] ERROR o.h.u.JDBCExceptionReporter - ERROR: duplicate key value violates unique constraint "activitystream_events_status_pkey" Detail: Key (ases_eventid, ases_entityid)=(2011965706-1554799477000-zYAv5tRK, xwiki:XWiki.ILIE) already exists.
Attachments
Issue Links
- is related to
-
XWIKI-16300 Marking a notification as read is not always taken into account right away
- Closed