Page MenuHomePhabricator

Widget not found error on pages I don't have permission to access
Closed, ResolvedPublic

Description

When I visit https://www.mediawiki.org/wiki/Special:CreateMassMessageList when I don't have permission to view the page I see the error "Uncaught Error: Widget not found"

This is understandable as there is no widget on the page

Screen Shot 2021-03-12 at 11.04.14 AM.png (964×1 px, 168 KB)

The JavaScript associated with this feature should not be loaded for users who can't use it.
https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-2021.03.12?id=tgprJ3gBWKe2MTdRKlEL

Event Timeline

Change 678080 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/MassMessage@master] Load javascript modules on special pages only when form is shown

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

Change 678080 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@master] Load javascript modules on special pages only when form is shown

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

Also occurs on action=delete and Special:GlobalPreferences presumably for other reasons.

Needs better URL or description if the user has some rights or not, the case for Special:GlobalPreferences and Special:Preferences could have the same cause, there are very similar

https://commons.wikimedia.org/wiki/Special:Preferences redirects to Special:UserLogin, not sure how that should happen.

Maybe it is better to get own task for separate issues, at least when there are other reasons to fail.

The MassMessage part should be fixed.

Jdlrobson claimed this task.

Sounds good. I'll open new bugs.