Last modified: 2009-08-23 22:31:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11857 - Protect Functionality for importImage.php Maintenance Script
Protect Functionality for importImage.php Maintenance Script
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-02 17:33 UTC by Aaron Axelsen
Modified: 2009-08-23 22:31 UTC (History)
4 users (show)

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


Attachments
Patch File (1.61 KB, patch)
2007-11-02 17:34 UTC, Aaron Axelsen
Details
Patch File - Version 2 (1.80 KB, patch)
2007-11-02 18:45 UTC, Aaron Axelsen
Details
Patch for 1.13.0 (2.42 KB, patch)
2008-08-22 21:39 UTC, Aaron Axelsen
Details

Description Aaron Axelsen 2007-11-02 17:33:50 UTC
I have added the option to protect/unprotect images that are imported using the script.  The entire page can be viewed here: http://pastebin.modevia.com/150

I have attached a patch against the latest SVN trunk.
Comment 1 Aaron Axelsen 2007-11-02 17:34:50 UTC
Created attachment 4302 [details]
Patch File
Comment 2 Aaron Axelsen 2007-11-02 18:44:59 UTC
My ordering was off in the first patch, please look at version 2: http://pastebin.modevia.com/151

One other thing, is that you must specify an existing mediawiki user for this to work correctly.
Comment 3 Aaron Axelsen 2007-11-02 18:45:32 UTC
Created attachment 4303 [details]
Patch File - Version 2
Comment 4 Aaron Axelsen 2008-03-07 20:38:06 UTC
any updates on this?
Comment 5 Aaron Axelsen 2008-08-22 21:39:37 UTC
Created attachment 5208 [details]
Patch for 1.13.0
Comment 6 Niklas Laxström 2008-10-06 07:06:37 UTC
The validation of input looks a bit shaky:
$restrictions['move'] = $options['protect'];
Comment 7 Aaron Axelsen 2009-01-08 14:47:19 UTC
What kind of validation are you looking for?  I would really like to see this get committed to the source code.
Comment 8 Alexandre Emsenhuber [IAlex] 2009-08-23 22:31:49 UTC
this was added in r47964.

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


Navigation
Links