Page MenuHomePhabricator

Permission error on Special:MathStatus needs message
Closed, ResolvedPublic

Description

When a user try to open Special:MathStatus without sufficient authorization, MediaWiki shows the permission error page, but the message <action-purge> is missing.

Screenshot from enwiki:

Cattura.JPG (193×556 px, 22 KB)

Event Timeline

Beta16 raised the priority of this task from to Needs Triage.
Beta16 updated the task description. (Show Details)
Beta16 subscribed.

Failing to purge if the purge right is not there doesn't seem right as purge right doesn't actually prevent from purging the cache - it only asks for a confirmation when the user doesn't have this right.

From https://github.com/wikimedia/mediawiki-extensions-Math/blob/master/SpecialMathStatus.php#L29-L30

// The effect of loading this page is comparable to purge a page.
// If desired a dedicated right e.g. "viewmathstatus" could be used instead.

That seems the right thing to do here.

Physikerwelt set Security to None.

That seems the right thing to do here.

@Glaisher: I think this is not super hard to implement. I just did not know how to initialize the new right with a reasonable default.
I will do the code review if a patch will be submitted;-)

I think i can work on this bug and @Glaisher will have to review it :)

I think i can work on this bug and @Glaisher will have to review it :)

Sure!

Change 265916 had a related patch set uploaded (by IoannisKydonis):
Add action-purge message to Math extension

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

Change 265916 abandoned by Physikerwelt:
Add action-purge message to Math extension

Reason:
Gerrit cleanup. Please resubmit, if this patch is still relevant.

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

Ammarpad subscribed.

Seems to have been fixed somewhen