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

Command icon 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

Alex Bukach created an issue. See original summary.

jurgenhaas’s picture

Great 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.

jurgenhaas’s picture

Status: Active » Needs review

Looks like it wasn't that difficult, please have a look at the MR and let me know if that resolves the issue for you.

alex.bukach’s picture

Status: Needs review » Reviewed & tested by the community

@jurgenhaas thanks, it fixes the issue!

  • jurgenhaas committed 304b4783 on 2.2.x
    Issue #3379118 by jurgenhaas, Alex Bukach: Cron requests are redirected...

  • jurgenhaas committed 64237e91 on 2.3.x
    Issue #3379118 by jurgenhaas, Alex Bukach: Cron requests are redirected...

  • jurgenhaas committed a8f5a2aa on 2.3.x
    Issue #3379118 by jurgenhaas, Alex Bukach: Cron requests are redirected...
jurgenhaas’s picture

Status: Reviewed & tested by the community » Fixed

Thanks @Alex Bukach, this is now published in release 2.2.19 and ported to 2.3.x

  • jurgenhaas committed c32e8ac6 on 2.3.x
    Issue #3379118 by jurgenhaas, Alex Bukach: Cron requests are redirected...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.