Page MenuHomePhabricator

Permission error for user group "Users" should link to expected User permission group, not a specific user page
Open, LowPublic

Description

From the bug(T113703) submitted by @Beta16, while trying to reproduce it on my localhost, i found out that the Users link points to Sitename:Users, in my case Rosalie:Users and this shows a page not found. I thought the link should point to a list of users that have permission in the group.

I did found this out while i did not have sufficient authorization, so i was an anonymous user with my localhost(127.0.0.1) as my IP address.

Event Timeline

rosalieper raised the priority of this task from to Normal.
rosalieper updated the task description. (Show Details)
rosalieper added a project: good first bug.
rosalieper moved this task to Backlog on the good first bug board.
rosalieper added subscribers: rosalieper, Beta16.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 23 2015, 2:35 AM
rosalieper added a comment.EditedOct 23 2015, 2:38 AM

Image might make it clear to see the link.

Maybe also the pattern used in Special:ListGroupRights page seems useful to me:

Users (list of members)
Aklapper added a comment.EditedOct 23 2015, 9:21 AM

Hi @rosalieper, thanks for taking the time to report this!

Could you please associate at least one project with this task (and/or clearer steps to reproduce)? Otherwise nobody will find this task when searching in the corresponding project(s). See https://www.mediawiki.org/wiki/How_to_report_a_bug for more information. Thanks!

I guess this is about Math...

Aklapper renamed this task from Page not linking to espected User permission group to "Users" link not linking to expected User permission group but to specific user page.Oct 23 2015, 9:22 AM
Aklapper added a project: Math.
Aklapper set Security to None.
Glaisher raised the priority of this task from Normal to Needs Triage.Oct 23 2015, 10:57 AM
Glaisher edited projects, added MediaWiki-General; removed Math, good first bug.

It might be useful to have the Administrators (list of members) on this page too. This shouldn't block working on the other task though.

As it's like this "The action you have requested is limited to users in the group: Administrators.", we could link the "users in the group" part to Special:Listusers/group.

As @Aklapper asked above for the bug reproduction, these are the steps. First of all, these bug is found in the Math extension and to reproduce the bug, you need this extension installed in your development copy of MediaWiki.

  • Install Math Extension
  • As an anonymous user(usually on localhost and not logged in), go to the Special:MathStatus and you will see the snapshot i pasted above. On that page, the Users link will be there and that is where the bug is.
  • Note that, if you are logged in, you won't see this bug but a MathStatus page giving information about enabled math rendering modes.

I am thinking of working on the bug myself and submitting a patch :)

This isn't specific to Math extension. It's the standard permissions error shown on MediaWiki so should be fixed on core itself. Also although you would see this error most commonly on special pages, it's not only shown on special pages.

The link target is grouppage-<group name> (in this case grouppage-user), which links to "{{ns:project}}:Users", that is the default and when the project does not have that page the link is red. This is possible for fresh installs, but on wikis with a community the page usually exists (see wikipedia wikis for example) or the message gets overridden to point to the special page or a other named page.

Having a additional link to the list of members is a possible soluation to avoid confusion here

As it's like this "The action you have requested is limited to users in the group: Administrators.", we could link the "users in the group" part to Special:Listusers/group.

I think this is not possible since there could be multiple groups that have the required permission (e.g. Admins, 'crats, CUs), which requires separate links to the specific user groups

Florian claimed this task.Apr 2 2016, 3:59 PM
Florian triaged this task as Low priority.
Florian moved this task from To triage to User/User rights on the MediaWiki-Special-pages board.

Change 281199 had a related patch set uploaded (by Florianschmidtwelzow):
Show "list of users" on PermissionsErrorPages

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

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptMay 8 2017, 12:00 AM
Krinkle renamed this task from "Users" link not linking to expected User permission group but to specific user page to Permission error for user group "Users" should link to expected User permission group, not a specific user page.May 8 2017, 12:05 AM
Framawiki moved this task from Backlog to Doing on the good first bug board.Dec 2 2017, 1:33 PM