[01:34:33] Hi, my name's Shea and I'm a Google Code-in student [01:36:37] Hello shea42 [02:43:00] saper: :-) [05:29:20] how can i link to the File: page of an image? if i insert http://en.wikipedia.org/wiki/Special:Search?go=Go&search=File:image.jpg, the image is inserted into the page. i would just like to display a text link [05:30:09] uh. i don't know how that got turned into a url, i meant if i insert "[ [ File:image.jpg]]" (without the spaces) [05:31:06] Candid: Use [[:File:Image.jpg]] or [[Media:Image.jpg]]. [05:44:55] thanks a lot, it worked [10:58:25] How do I test an extension before committing? [11:01:18] Install it? [11:01:27] Depends what you've changed [11:10:37] Reedy: I've edited the Multimedia Plugin to address T59308. Now I want to test it before pushing [11:11:13] So install it, upload some files to your wiki [11:11:23] View the page and see if the uploaders name still appears [11:18:09] Thanks [14:43:24] morning [17:15:17] Hi - could someone with admin privileges please merge in this patch? https://gerrit.wikimedia.org/r/#/c/260369/1/includes/SF_FormPrinter.php [17:16:23] I have a 2nd patch to add in the i18n stuff that this patch is failing because of, but that 2nd patch is dependent on this one, so... it's stuck right now. [17:28:36] sorry if this is the wrong place for this, but I found this channel on the FAQ. i've been trying for a while to return the list of articles linked to from a specific article. is that possible with this api? [18:26:51] Tphp7 [18:26:53] !php7 [18:26:53] https://www.digitalocean.com/company/blog/getting-ready-for-php-7/get_ready-03a8c363.jpg [18:26:57] wm-bot works [19:16:56] Howdy! 1.26 appears to loathe apostrophes in page titles and won't display them. Is there any way to allow that to happen? Or a quick way to remove the apostrophe from a few hundred titles? [19:17:47] Ulfr: i think it was changed to percent-encode it in URLs [19:18:14] so maybe it's not cooperating with some weird rewrite rules or something? [19:18:17] MatmaRex: Well, when I try to access the page it whitescreens. I can edit source if I access that action directly [19:18:37] Ulfr: are you using opera 12? :D [19:18:45] MatmaRex: Pfft. Firefox. [19:18:56] oh, that's even more interesting then [19:19:18] the current implementation causes a redirect loop on opera 12, but only sometimes [19:19:27] not percent-encoding caused a redirect loop on some firefox versions [19:19:34] https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwiHm4PZl_DJAhUEOj4KHR77D5cQFggnMAA&url=http%3A%2F%2Fwww.wikidoc.org%2Findex.php%2FHodgkin%27s_lymphoma&usg=AFQjCNGxdtgbFfCHQduCqmDap8Msqvtw1g&sig2=VdXyxggxFqWhXK5zCw3l5g&cad=rja [19:19:41] uh [19:19:41] so… that's weird. [19:19:48] www.wikidoc.org/index.php/Hodgkin's_lymphoma [19:20:00] My IRC client doesn't like it either [19:20:00] :P [19:20:49] My apologies, it doesn't whitescreen, it just fails [19:20:50] like [19:20:53] fails hardcore [19:21:09] It gets stuck in a redirect loop for me too. [19:21:13] yeah, it's a redirect loop [19:21:34] try: curl -I -L http://www.wikidoc.org/index.php/Hodgkin's_lymphoma [19:22:17] anyway. the weird thing is that requesting http://www.wikidoc.org/index.php/Hodgkin%27s_lymphoma does a 301 redirect to http://www.wikidoc.org/index.php/Hodgkin%27s_lymphoma itself. [19:22:47] yeah, I didn't need that terminal window [19:22:58] so it's something funky on my end, not on mw's part? [19:23:15] my guess is that you have some weird rewrite rules, and MediaWiki only sees the version with unencoded ', and tries to encode it to %27 and redirect you there [19:23:33] but, to be honest, i have no idea. :P [19:23:55] It could be either/or [19:24:01] What webserver? [19:24:07] Apache 2 [19:24:14] Ulfr: the code for this is in /includes/MediaWiki.php, function tryNormaliseRedirect [19:24:26] so i'd try to insert some debugging in there [19:24:41] or comment out the redirecting, if you just want your pages back online right now [19:24:46] Are you using the Apache NE flag? [19:24:54] Ala https://stackoverflow.com/questions/9223002/apache2-rewrite-rule-return-a-url-which-contains-an-apostrophe [19:25:18] Reedy: Gooood question. I haven't looked at my rewrite rules closely in a little while. I'll have to check [19:25:33] how would I go about returning a list of all articles linked to from a given article? I'm having trouble figuring this out [19:25:36] I knew there was something in the apache rewrites, so looked it up [19:25:50] wikiapiquestion: The API can give you links on a page [19:27:12] Well, I do rewrite a bunch of stuff, but it's mostly about images and such. Nothing specifically related to apostrophes [19:28:09] Ulfr: Right, but any rewrite of pages like /wiki/Foo would be a rewrite [19:28:24] does index.php?title=WITHAPOSTROPHE work fine? [19:28:28] Reedy: I've been looking at the api sandbox, and would the correct usage be the query action and the "allllinks" list? [19:28:45] it doesn't seem to return what I want on the sandbox [19:28:51] I don't think so [19:28:57] That's a negatory [19:29:11] Internet is on a go slow [19:29:49] wikiapiquestion: alllinks is "Enumerate all links that point to a given namespace." [19:30:22] right, i'm not seeing another list in there that seems to point in the right direction [19:30:55] https://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Main%20Page [19:31:37] Ulfr: NE ALL THE THINGS [19:31:52] probably [19:32:28] Reedy: Bu--but there's no rewrite rule for anything unrelated to images or making fun of script kiddies [19:32:42] hmm [19:33:06] when they get persistent enough for me to notice I redirect whatever they're hitting to something snide [19:33:20] there's no rule that says apostrophes get redirected to the third circle of hell [19:33:31] Pastebin your apache config? [19:34:38] http://pastebin.com/3ARUtjDi [19:35:09] You've got dupe ServerAlias [19:35:28] ... [19:35:30] how'd that get there [19:35:31] fixed [19:35:52] RewriteRule ^/(.*)$ http://127.0.0.1:85%{REQUEST_URI} [P,QSA,L] [19:35:58] I wonder if that'd benefit from an NE [19:36:19] ... [19:37:00] Nope :( [19:37:05] it's probably Varnish being a butthead [19:37:24] Nope, not that [19:41:08] If I comment out line 313 on includes/MediaWiki.php the will load, but it doesn't load anything. >>; [19:41:49] "I altered core mediawiki now it's broken!" [19:43:11] Ulfr: try adding 'return false;' somewhere near the beginning [19:43:33] Ulfr: actually, you could also use the TestCanonicalRedirect hook to never redirect, apparently. [19:43:48] (unless that's in master and not 1.26, i'm looking at master) [19:43:51] Reedy: Hey man, y'all got mad pipes inside ifs inside there. I get confused and upset very, very easily [19:44:47] Okay, so it's loop-of-deathing on Hodgkin's_lymphoma being not equal to Hodgkin%27s_lymphoma [19:45:10] MatmaRex: I feel like this is one of those bugs that won't be a huge deal if I disable it until it's a really huge deal [19:46:09] * Ulfr sighs [19:46:18] and because of my debugging I just saw someone access the url [19:46:24] vicodin_how_get [19:46:30] seriously? [19:47:48] Tell them to go see House [19:48:12] I think that's part of the problem. C'est la vie. Would it make sense to add a rewrite into apache specifically for apostrophes? [19:48:42] because I just 'fixed' it but I'm not at all comfortable with altering core just to make my wiki shut up and work [19:49:03] Could be worth a bug report [19:49:18] If it's stuff that changed in 1.26, it might be buggy for some configs [19:50:21] Honestly? It's probably something on my end. Gonna try putting NE in a bunch of places [19:50:54] Can you simplify your layers for testing? [19:51:03] /remove some [19:51:23] Uhm, I can bypasss squid directly by accessing with a different port [19:51:44] Worth a few minutes time [19:52:42] oh, very interesting. if I go through vagrant and give it %27, it will function, but if I try that through vagrant it loops itself to death [20:06:30] Reedy: I hate to be a bother but my config-fu is not strong. I feel like I'm really close with RewriteRule ^/'([^\']+)\'(.*)$ /$1%27$2 [NE] because I get a 502 instead of a loop of death. what'd I flub? [20:07:22] What if it's got more than one apostrophe? [20:08:19] Well, right now even the one is giving my redirects fits [20:08:41] but you've got a point. And I will hate the user who cooks up a page containing that with a fiery passion [20:09:00] So 502 is invalid request from the "upstream server" [20:09:18] well, we're back to redirect hell with: RewriteRule ^/\'([^\']+)\'(.*)$ /$1%27$2 [NE] [20:09:34] so I think that was I made a typo and the rewrite rule made apache angry [20:10:01] She's a fickle mistress [20:10:32] Oh, aye. [20:20:17] Sigh. I can't even tell if the bloody rule is working. Why's rewrite gotta be so cryptic when it comes to punctuation ;; [20:52:27] Reedy: Thanks for the help, I'm admitting defeat today, but I'll set things straight with this aggressively fickle mistress tomorrow. [20:52:35] So dumb. ' and %27 are the same. [21:50:19] Hello