Page MenuHomePhabricator

Special:MassMessage shows "send" button and copyright notice even when message can't be sent
Open, MediumPublicBUG REPORT

Description

For a message to be sent, a target list, a subject, and a message all must be specified. When clicking "preview", if the requirements aren't met yet, the information relating to actually sending the message shouldn't be displayed, because it is not yet ready to be sent.

SpecialMassMessage shows send button and copyright warning when requirements are not met.JPG (1×2 px, 129 KB)

Once this view is displayed, a user can add a subject, message, and target list and then send the message without ever previewing it. The preview shouldn't be shown until the message can actually be sent.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 changed the subtype of this task from "Task" to "Bug Report".
Dreamy_Jazz triaged this task as Medium priority.
Dreamy_Jazz subscribed.

This ideally will be needed to be fixed for implementation of T290035 as Special:MassMessage will need to keep track of a valid revision ID that is shown in a preview that was ready to send. Without fixing this, the user could submit a form with errors for preview, then fix them while changing the page message to a new title and then press send with the page title and revision ID being from different places. The user following these steps would then be presented with an error caused by an action they didn't directly follow. Furthermore, in this scenario the preview won't show what was going to be sent.

Change 868847 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/MassMessage@master] Don't show the preview unless the form data submitted has no errors

https://gerrit.wikimedia.org/r/868847

Without fixing this, the user could submit a form with errors for preview, then fix them while changing the page message to a new title and then press send with the page title and revision ID being from different places.

Note that to some extent we can't fix this completely without forcing users to preview again if they make any changes (which I don't think we should), since they can always make changes to a valid request on preview, and make it invalid again.

Change 872487 had a related patch set uploaded (by Wctaiwan; author: Wctaiwan):

[mediawiki/extensions/MassMessage@master] Hide submit button if form data has errors

https://gerrit.wikimedia.org/r/872487

Change 868847 abandoned by Dreamy Jazz:

[mediawiki/extensions/MassMessage@master] Don't show the preview unless the form data submitted has no errors

Reason:

In favour of I4c20b9b6750e0a1614ee04d1d7ae03140c5524bc

https://gerrit.wikimedia.org/r/868847

Change 872487 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@master] Hide submit button if form data has errors

https://gerrit.wikimedia.org/r/872487