Problem/Motivation

The processing of the notify subscriber queue throws a type error if the subscriber unsubscribes before the queue item in the notify subscriber queue gets processed.

Steps to reproduce

  • Subscribe to an entity
  • The entity gets updated with notifications enabled
  • The subscriber unsubscribes from all entities or gets deleted
  • The queue processing is triggered
  • A type error (not an exception) is thrown and the item gets stuck in the queue

Proposed resolution

  • Check if subscriber or subscriber->entity are empty in processItem of QueueWorker and if so, return silently

Remaining tasks

User interface changes

API changes

Data model changes

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

sbrandt created an issue. See original summary.

sbrandt changed the visibility of the branch 1.x to hidden.

sbrandt’s picture

Issue summary: View changes
sbrandt’s picture

Issue summary: View changes
sbrandt’s picture

Status: Active » Needs review
sbrandt’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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