Last modified: 2013-12-25 11:19:38 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 T17065, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15065 - Enable Special:Import on se-chapter
Enable Special:Import on se-chapter
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://se.wikimedia.org/
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-07 09:23 UTC by David Öhlin
Modified: 2013-12-25 11:19 UTC (History)
5 users (show)

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


Attachments

Description David Öhlin 2008-08-07 09:23:18 UTC
Hello,

On behalf of the board of the Swedish chapter (Wikimedia Sverige), we would like to enable Special:Import on se.wikimedia.org in order to import articles from sv.wikipedia.org.

Regards,
David Öhlin/Caesar
Comment 1 Brion Vibber 2008-08-07 18:09:13 UTC
Added 'w:sv' to $wgImportSources for sewikimedia.
Comment 2 Micke Nordin 2008-08-07 18:44:37 UTC
Thanks for fixing this, but it seems some problem is still linguering:

We get the error message:
Importen misslyckades: Misslyckades med att öppna importfilen.

Whiche means:
Import failed: Failure to open import-file

/Micke
Comment 3 Brion Vibber 2008-08-07 19:21:26 UTC
Ok, a little background...

1) The interwiki config is a little sloppy and is sending just 'w' to se.wikipedia.org, which is some other language, so I stuck 'w:sv' in ImportSources to get Swedish correctly.

2) But that goes via an HTTP redirection...

3) Which _may_ interfere with some behavior, as it will change from POST to GET and the intermediate redirect will lose the 'history=1' option :(

4) But more dangerously, it looks like Http::request() isn't following redirects! It just fails outright.

This return check looks suspicious:

	# Don't return the text of error messages, return false on error
	if ( curl_getinfo( $c, CURLINFO_HTTP_CODE ) != 200 ) {
		$text = false;
	}

should check whether CURL will follow the redirect for us or if we have to loop it manually, and what happens to the result code...
Comment 4 Micke Nordin 2008-08-12 18:24:13 UTC
What does that mean? Is it possible to fix this? If else, is there some other way for us to import 6 specific articles from sv.wiki with full history? Could we specify which articles are concerned and someone will put them i our database using some other interface? 

/Micke 
Comment 5 Mike.lifeguard 2009-03-20 17:40:53 UTC
Looks to me like Brion is saying the code needs changing. If that's the case, I guess there's nothing to do on shell at present & then the shell keyword should be removed.
Comment 6 p858snake 2012-01-16 10:23:31 UTC
Is this still a issue for you guys trying to import?
Comment 7 David Öhlin 2012-01-16 19:49:13 UTC
Using import was really only relevant at the time of the original request, when we had a team working on importing articles from Wikipedia to create a paper book. Since it didn't work, the team found another way.

I don't know if it works or not, but to my knowledge, it is not needed anymore.
Comment 8 p858snake 2012-01-16 21:33:01 UTC
WONTFIX per comment

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


Navigation
Links