Cron URL is redirected to front page instead of processing cron jobs when DANSE Config, DANSE Form, DANSE Log, or DANSE User module is enabled, and there are events for one of them in the queue.
Here's how it happens:
* Push Framework tries to render push-object entity.
* Push-object entity is a an entity returned by a payload of respective DANSE event.
* Entity returned by payloads of DANSE Config, DANSE Form, DANSE Log, and DANSE User events are DANSE events.
* When a DANSE event is being rendered, its EventView::build() redirects a user to another page instead of returning any content.
Do we miss anything in the module setup?
Issue fork danse-3379118
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jurgenhaasGreat observation, thanks for reporting this @Alex Bukach
The current implementation of the EventView class has the purpose to mark notifications as seen when the notified user clicks on the event in the notification drop down view. Then they get redirected to the entity which triggered that event.
Later, we implemented new functionality that use the Event entity as a placeholder for events that are not directly related to any other content entity. And we missed the fact that for the notification rendering, this same method is being called. In that case, we don't want to mark the notification as seen, and we don't want to redirect. Instead, we need to build some rendering array. I'll see what I can do for that.
Comment #4
jurgenhaasLooks like it wasn't that difficult, please have a look at the MR and let me know if that resolves the issue for you.
Comment #5
alex.bukach commented@jurgenhaas thanks, it fixes the issue!
Comment #9
jurgenhaasThanks @Alex Bukach, this is now published in release 2.2.19 and ported to 2.3.x