New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing app updates #226
Comments
Works fine here. Can you post the full database entry? |
|
Some time ago, I wrote a simple Python script that polls the Notification API for the admin user. I use this script as an Icinga plugin to be ensure that my Nextcloud installation is always up-to-date. Recently, I noticed that I get a notification in the web interface, but not via the API. The notification in the database looks similar to the one @Simounet posted. I think that this problem is at least related to the one this issue is about. I dug a bit into this problem:
To verify this, I temporarily set the parsedSubject in Handler#notificationFromRow. As a result, the API then returns the notification as it is found in the database. |
Are you sure the updatenotification app is enabled? |
Yes, for me it is installed, but I do not get a push notification that a new update (app / server) is available. |
My bad, I installed NC a long time ago (through OC) and I didn't have the |
For me this is not yet solved:
|
I still observe this problem as well:
|
@paulchen which version of nextcloud and the notifications app are you using exactly? |
Nextcloud 15.0.0 and Update Notifications 1.5.0. |
Hi at all, |
@elmarfu I created a patch from the changes I applied to my Nextcloud instance: --- cloud-old/apps/notifications/lib/Handler.php 2019-03-17 22:09:44.476893338 +0100
+++ cloud/apps/notifications/lib/Handler.php 2019-03-17 22:08:45.892292939 +0100
@@ -273,7 +273,8 @@ class Handler {
->setUser($row['user'])
->setDateTime($dateTime)
->setObject($row['object_type'], $row['object_id'])
- ->setSubject($row['subject'], (array) json_decode($row['subject_parameters'], true));
+ ->setSubject($row['subject'], (array) json_decode($row['subject_parameters'], true))
+ ->setParsedSubject($row['subject']);
if ($row['message'] !== '') {
$notification->setMessage($row['message'], (array) json_decode($row['message_parameters'], true)); Save it to a file and apply it with Please keep in mind that I'm not responsible if anything goes wrong with your installation. At the moment, I'm using Nextcloud 15.0.5 together with Notifications 2.3.0. |
Can this be solved with the patch from @paulchen ? I fear that I might get hacked because I don't get informed by nextcloud via mail when an important update is available. |
No, that is not a valid solution/workaround. |
I tried the patch from @paulchen, but it didn't change anything. So I reverted it. |
Push notifications for updatenotifications have been fixed with nextcloud/server#14744 |
@nickvergessen: unfortunately the patch provided here nextcloud/server#14744 respectively [stable15] Always register the Notifier #14749 doesn't seem to fix my problem... |
@nickvergessen as you know it worked very well with your fix on NC15. |
16 is something completely different and should have it's issue in the server component. |
Today I got the notification about the availability of Nextcloud 15.0.6. Using this notification, I was able to verify that the changes from nextcloud/server#14744 indeed fixed my problem. |
Steps to reproduce
Expected behaviour
Should see a notification about the app update.
Actual behaviour
Nothing shows up even if I have few rows on the
oc_notifications
table:app: updatenotification
subject: update_available
Thanks for this amazing piece of software anyway!
The text was updated successfully, but these errors were encountered: