Last modified: 2014-08-08 17:04:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61200, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59200 - permissionserrorstext-withaction produces an erroneous message when used with action-createpage in some situations
permissionserrorstext-withaction produces an erroneous message when used with...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.23.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-02 09:52 UTC by Mr. Stradivarius
Modified: 2014-08-08 17:04 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mr. Stradivarius 2014-01-02 09:52:42 UTC
The default English value of [[MediaWiki:Permissionserrorstext-withaction]] is "You do not have permission to $2, for the following reasons:", and the default value of [[MediaWiki:Action-createpage]] is "create pages". When a user tries to create a page but they don't have the correct permissions, these messages are used together to make "You do not have permission to create pages, for the following reasons:".

However, this message is not true for registered users who try to edit a create-protected page. They do have the permission to create pages in general, they just don't have the permission to create that particular page. (That is, unless that particular wiki disallows page creation by non-admin users, or something else funky like that.)

For example, go to this link as a registered non-admin user: https://test.wikipedia.org/w/index.php?title=This_is_just_a_test&action=edit

That will show the message above, but it is still possible to create other pages on testwiki.

Also, on most Wikimedia wikis IPs are allowed to create talk pages, and on enwiki they are allowed to create drafts, which means the message isn't really true for them either.

I see two possible fixes, depending on whether action-createpage is used in messages other than permissionserrorstext-withaction. If it isn't, we can just change action-createpage to "create this page". If it is, we may need to create a new message to use with permissionserrorstext-withaction. 

I've brought this up on enwiki's village pump too, but no responses so far: [[WP:VPT#Action-createpage]].
Comment 1 Technical 13 2014-01-23 23:10:42 UTC
What if the code on the page was something like:

{{#ifexist:{{FULLPAGENAME}}|create pages|{{#ifeq:{{PROTECTIONLEVEL:edit|{{FULLPAGENAME}}}}|sysop|create this page}}}}

So that only pages that do not exist but are sysop protected (implicitly create protected) show "create this page" and the rest show "create pages".  Would that be too hacky?
Comment 2 Technical 13 2014-01-24 00:32:21 UTC
(In reply to comment #1)
> What if the code on the page was something like:
> 
> {{#ifexist:{{FULLPAGENAME}}|create pages|{{#ifeq:{{PROTECTIONLEVEL:edit|{{FULLPAGENAME}}}}|sysop|create this page}}}}
> 
> So that only pages that do not exist but are sysop protected (implicitly create
> protected) show "create this page" and the rest show "create pages".  Would
> that be too hacky?

Okay, so I played with this idea on [[testwiki:]] (https://test.wikipedia.org/w/index.php?title=MediaWiki:Action-createpage&action=history) and came up with:

{{#ifeq:{{PROTECTIONLEVEL:create|{{FULLPAGENAME}}}}|sysop|create this page|create pages}}


This works.  Maybe this is something that should be fixed in core at some point, but this works for me for now.
Comment 3 cathfolant 2014-08-08 17:04:52 UTC
This bug should also be fixed for [[MediaWiki:Action-createtalk]], which has the same problem (it says 'create discussion pages'). It's been changed locally for now (https://en.wikipedia.org/w/index.php?title=MediaWiki:Action-createtalk&action=history) but it would be nice to have the default text be changed as well.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links