Open Berlinst opened 3 months ago
I cannot recreate the issue consistently, but there is definitely an issue with browser notification management. Possibly a race condition where the client-side script that checks for notifications gets a notification and displays it and the user navigates away from the page before the second request to GLPI to delete the notification is made.
Also, forcing a browser notification to send won't do anything. There is a client-side script that asks GLPI for the user's notifications to display rather than this being a push notification system, so GLPI can't send the notifications on demand like that.
Also, forcing a browser notification to send won't do anything. There is a client-side script that asks GLPI for the user's notifications to display rather than this being a push notification system, so GLPI can't send the notifications on demand like that.
Ok, I understand. However, do you agree that it’s not ideal for the GLPI notification queue to keep filling up? Is there any solution to prevent this from happening? Would this script be able to clear the notification queue? If so, where is this script located, and can it be adjusted to address the issue?
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
I created a browser notification for new tickets. Upon creating a new ticket, I receive the notification in my browser as expected. However, when checking the notification queue, I notice that the notification remains in the queue; it does not clear after being sent.
I tested by forcing the notification to be sent, but it still remains in the queue, and I receive the following message:
I have also executed the 'queuednotificationclean' automatic action both through GLPI and the CLI, but the notification still does not clear from the queue.
The notification only clears from the queue if I manually select it and move it to the trash bin. However, this approach is obviously not feasible for managing notifications.
Relevant log output
No response
Page URL
https://yourglpi.com/front/queuednotification.php
Steps To reproduce
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response