Moodle

CLONE -Blocking user before reading message causes constant popups

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Messages
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Steps to reproduce:

1/ User sends me a message with spam in
2/ I recieve email of the spam and declare it a spam
3/ I login to moodle and get the message pop indicating I have a new message
4/ I block the user and dont read the message

Actual result:
Now every time I login I get messaging popup without any messages, and it is slow and unintuitive to find the user, unblock them and read the message.

Expected result:
Never hear from user again, and dont get popup

Issue Links

Activity

Hide
ska added a comment -

The cloned issue was marked as duplicate of a "pending messages if an user is deleted" issue.

But this is not so in version v1.8.3+

The problem may arise, because of a race condition between sending the message and blocking the sender. If both happen almost at the same time or the sender is an Admin, who bypasses this check anyway, the message is placed into the database, but the block check is negative.

The message is counted in the profile view of the recipient, the popup window opens, but messages of blocked senders are suppressed.

I suppose this is the same with v1.9 as reported.

Show
ska added a comment - The cloned issue was marked as duplicate of a "pending messages if an user is deleted" issue. But this is not so in version v1.8.3+ The problem may arise, because of a race condition between sending the message and blocking the sender. If both happen almost at the same time or the sender is an Admin, who bypasses this check anyway, the message is placed into the database, but the block check is negative. The message is counted in the profile view of the recipient, the popup window opens, but messages of blocked senders are suppressed. I suppose this is the same with v1.9 as reported.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: