Closed (outdated)
Project:
Notify
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2019 at 09:30 UTC
Updated:
11 Jul 2021 at 06:20 UTC
Jump to comment: Most recent
We have 4 users configured to receive notifications, we queue a notification by un-publishing then re-publishing a node, when we manually trigger a notification using "Send batch now" all 4 users receive a notification, however when the notification email is sent using Cron, only 2 of the users receive the notification. This is confirmed under the "Status" section and based on who is actually receiving the emails.
Comments
Comment #2
aaronmchaleSo far, from what we have discovered, it looks like when sending via Cron, Notify does send notifications to use who have the administrator role, but not users who don't have that role, for example authenticated users, this is despite all roles having the "access notify" permission.
Comment #3
aaronmchaleI'm now wondering if this code could be causing the issue,
notify.module:_notify_send():Comment #4
vuilWe need more information how to reproduce the issue. Thank you.
Comment #5
aaronmchaleOk, specifically what additional information do you need?
Based on #3 there's clearly a mismatch between what the code does and what the comment says, which could very well be the problem here.
Comment #6
Sion.Pickering commentedHi ilchovuchkov - I'm working with Aaron on this - though I'm not technical (I'll leave that to Aaron).
In terms of the issue it's as follows:
- We have 40+ users, of which there are 2x admin.
When a new post is input into a forum the following is shown in the Notify Queue:
There are 0 nodes and 1 comment created since 09/23/2019 - 14:34.
No unpublished items.
Notifications about at least 1 item is queued.
No item is flagged for skipping.
Last batch: sent 2 e-mails, no failures.
The next notification is scheduled for the first cron run after 09/23/2019 - 14:44.
Default MailSystem: system default.
After the designated time (14:44 in the above instance) the Notify Queue shows the following:
There are 0 nodes and 0 comments created since 09/23/2019 - 14:40.
No unpublished items.
No notifications queued.
No item is flagged for skipping.
Last batch: sent 2 e-mails, no failures.
The next notification is scheduled for the first cron run after 09/23/2019 - 14:50.
Default MailSystem: system default.
The 2x emails are received by the 2x Admin account.
I created a new user role called "Contact" and attempted to establish which permission is required for "non-admin" users to receive the emails. It is the permission "Bypass content access control" that is required for this. I cannot allow all users to have this permission as it allows them to modify all content across the website.
Thanks!
Comment #7
gisleIt has been 21 months and version 8.x-1.x is no longer supported. I am unable to reproduce, closing as outdated.
Please open a new issue if this is still a problem with the 2.0.x branch.