Last modified: 2012-04-05 19:43:10 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 T34341, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32341 - Add upload by URL domain limitation
Add upload by URL domain limitation
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: 1.20.0 release
Assigned To: Sam Reed (reedy)
: platformeng
Depends on:
Blocks: 14919 20512
  Show dependency treegraph
 
Reported: 2011-11-10 14:20 UTC by Sam Reed (reedy)
Modified: 2012-04-05 19:43 UTC (History)
4 users (show)

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


Attachments

Description Sam Reed (reedy) 2011-11-10 14:20:04 UTC
https://bugzilla.wikimedia.org/show_bug.cgi?id=14919#c5

The link above requests upload by url for internal WMF usage.

As part of this, it'd make sense to have a limitation in place, so we can allow grabbing from specified url.

That way it gives a sane error message that you can't get it from elrandomsite.com, rather than it timed out getting it from said site (as in the WMF setup, it won't be able to do the request)
Comment 1 Sam Reed (reedy) 2012-01-19 19:16:45 UTC
Done! r109562
Comment 2 Sven Manguard 2012-01-22 16:23:58 UTC
My god Pandora, what have you done, opening that box?!

If there are any existing or future bug requests seeking to extend this feature to allow uploading from non-WMF sites, please email about me immediately. If improperly implemented, it would (not could, absolutely would) be massively disruptive.
Comment 3 Sven Manguard 2012-01-22 16:24:54 UTC
(In reply to comment #2)
> My god Pandora, what have you done, opening that box?!
> 
> If there are any existing or future bug requests seeking to extend this feature
> to allow uploading from non-WMF sites, please email about me immediately. If
> improperly implemented, it would (not could, absolutely would) be massively
> disruptive.

email me about it*
Comment 4 Sam Reed (reedy) 2012-01-22 16:27:28 UTC
No, there isn't, AFAIK.

This is a software restriction mainly to allow transwiki to commons

There is no way to be able to upload from off site urls directly, so shouldn't be too much of an issue
Comment 5 Sam Reed (reedy) 2012-01-22 16:35:29 UTC
To also put you at ease, the current setup of the apache webservers means they can't pull content from outside the wikimedia cluster :)
Comment 6 Sam Reed (reedy) 2012-01-22 17:36:02 UTC
(In reply to comment #1)
> Done! r109562

Out again in r109741. It will be coming back post branch!!
Comment 7 Sven Manguard 2012-01-31 23:30:30 UTC
Implementation question:

Once this goes up, what sort of interface will be built to facilitate the moves, and who will have the ability to initiate the moves?

CommonsHelper, the current transfer bot, functions only occasionally and rarely is the output ideal. ForTheCommonGood, developed by This, that and the other, works much better than CommonsHelper, and with better results. CH is on the toolserver, I believe, while FTCG is not.

I see three implementation options: The development of an upload wizard built into Commons that allows transfers from other projects, the recoding of one or more of those tools to integrate URL uploading, or a combination of both of these things.

While I don't know if coding the interfaces is your job or not, I'd like to hear from you as to which of these will be possible and which of these will be secure enough to be an acceptable option? I'd like to know this before the 1.20wmf deployment, so that I can try and rally a group of people to get the interface working before it goes live. FTCG, simply by virtue of functioning better, has saved the file workers untold hours in post-transfer cleanup; it is important that we make sure that the new transfer interface(s) are as good as possible, as early as possible.
Comment 8 Sam Reed (reedy) 2012-02-09 23:23:08 UTC
r111120
Comment 9 Rainer Rillke @commons.wikimedia 2012-03-02 18:22:20 UTC
(In reply to comment #7)
Dear Mr. S. Manguard,

>and who will have the ability to initiate the moves
-- Ever heard of the upload_by_url right? - [[Special:ListGroupRights]]

>While I don't know if coding the interfaces is your job or not
-- No it isn't. There is a very basic interface in trunk/phase3/includes/specials/SpecialUpload.php but you can't expect the MediaWiki devs creating a transfer-tool

>I'd like to hear from you as to which of these will be possible
Look at the source code. (https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109562) If you do not understand that, I am sure you won't be able to code an interface.
You could e.g. use the API format JSON/JSONP together with JavaScript = WebApp, which would be the most reasonable approach because it would allow almost all people to use it. The best place to host it would be Commons.

>My god Pandora, what have you done, opening that box?!
... no comment ...


Sincerely Rainer Rillke

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


Navigation
Links