Last modified: 2011-04-14 15:14:28 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 T23645, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21645 - Create a more specific warning when (re)uploading a file is protected
Create a more specific warning when (re)uploading a file is protected
Status: NEW
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-25 22:13 UTC by The Evil IP address
Modified: 2011-04-14 15:14 UTC (History)
4 users (show)

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


Attachments

Description The Evil IP address 2009-11-25 22:13:33 UTC
Currently, the warning that appears when you intend to upload a file, but you mustn't do it, because the file is either protected [create=sysop] or [upload=sysop], is [[MediaWiki:Protectedpagetext]] with the default being "This page has been locked to prevent editing."

This is, however, not an ideal solution. Editing pages is something different than uploading files and requires a different warning that the filename they chose is protected from (re)uploading. For example, files and regular pages sometimes have other processes how people can request changes to it. On Commons, edits to non-file pages are requested by adding [[commons:Template:Editprotected]] on the talk page. New uploads are requested at [[commons:Commons:Requested updates to protected files]]. 

Furthermore, variables like {{FULLPAGENAME}} in sentences like "See the [{{fullurl:Special:Log}}|type=protect&page={{FULLPAGENAME}} protection log] for the protection reasons can't be used when uploading, as the pagename then is [[Special:Upload]]. If such a new system message would contain a $1 parameter being the filename protected from (re)uploading, this would be possible. 

On Commons ([[commons:MediaWiki:Protectedpagetext]]), this is currently done by finding out the {{FULLPAGENAME}} and to show a different warning when it's "Special:Upload", which works. However, I think that this is an imperfect solution, because: All other wikis still show the useless sentence "This page has been locked to prevent editing.". The filename can't be found out, which makes linking to it impossible, as noted above also. Complex parser functions might make it more complicated for people to understand the message or to change it. Having two different warnings for this, people wouldn't be confused. 

I hope what I explained can be understood. Otherwise, feel free to ask what you didn't understand. I'd be happy if you would be able to fix this. Cheers, [[commons:User:The Evil IP address]]

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


Navigation
Links