[01:46:13] How would I turn a template field into a category? Every time I try to refer to the current template it tells me I've got a template loop instead of just grabbing the field value. [03:09:34] I'm not sure if this is the right place to ask but I've been googling like crazy and can't find any solutions. I have a mediawiki 1.34 installation running on Manjaro linux and Special:WantedPages isn't populating [03:10:07] Is there a step to set up processing of those sorts of things that I may have missed during installation? [04:52:12] DeltaF1: check your job queue [04:52:32] via the showJobs.php and runJobs.php maintenance scripts [04:52:54] if it's really backlogged, either up $wgJobRunRate *or* set it to 0 and also set up a cron job for runJobs.php [04:53:20] also, this is indeed the right place to ask :) [05:07:13] I ran showJobs and it returned 0 [05:08:35] also updateSpecialPages.php shows 0 Wantedpages rows [05:08:39] Wantedpages [QueryPage] got 0 rows in 0.01s [10:23:09] Hi guys: I use a mediawiki platform on my own computer with no public access via network / internet. So security is not a big deal. I used Mediawiki v. 1.17 for a long time and as I have to upload files very often I wrote a small windows program which does that job for me by doubleclicking the file. So a lot of time saving :-). Now I upgraded to [10:23:09] the actual version and my software is not working anymore. I found a hint, that since v1.27 there is a security token wich I have to get from the website and wich I have to send back to the mediawiki in the POST command. Is it possible to deactivate this feature (e.g. in localsettings.php)??? Once again: security doesn't bother me in this case! [10:27:32] Nope [10:30:30] OK so no possibility to upload files without this wpEditToken? [10:31:01] Are you doing uploads via screen scraping Special:Upload? [10:32:44] No, I used a TWebbrowser-Component for windows application to send a POST command to the apache. [10:33:09] That doesn't answer the question [10:33:28] If you're using a web form... Via an app, that's basically screen scraping [10:33:29] Sorry, than I diddn't get your question... [10:33:30] MW has an upload API :P [10:33:42] https://www.mediawiki.org/wiki/API:Upload [10:34:03] OK, I'll check, give me a second... [10:37:15] OK, so I can use a simple HTTP.GET command to obtain an CSRF token an this can simply be attached to the HTTP.POST command? [10:37:37] That should work, yeah [10:39:37] Great, I'll try that... What happens if I apply this method to the mediawiki v1.17. I suppose I'll get no token? And if I send an empty token with the POST command, do you know it will it work? So my software will be compatible with the old version or do I have to check the wiki-version first? [10:49:22] One more question: This token is valid for only one upload or for the whole session? [12:07:35] Hey, I'm having a bit of trouble configuring clamav antivirus on my install. I see on the docs that it was suppose to be called from SpecialUpload.php function detectVirus() but this doesn't seem to exist anymore in 1.31 [12:07:59] Honestly, I wonder if you're the only person to ever configure that [12:08:47] lol I would assume that since the documentation on that is very spare [12:09:00] It's in UploadBase::detectVirus() now [12:09:38] Reedy: great, will look into that see if I can debug it [12:10:00] absor70: Are you allowing uploads of weird file formats? Because if its just jpegs you're allowing, viruses in jpeg files are not really a thing [12:10:01] $wgAntivirus needs to be true [12:10:16] uh [12:10:20] $wgAntivirus needs to be 'clamav' [12:11:03] bawolff: Actually... Looking at UploadBase... [12:11:17] It only seems to be called from verifyPartialFile [12:11:28] Does that mean like chunked upload? [12:11:39] Or literally that it only verifies part of the file? [12:11:39] bawolff: I also need to allow pdf, docx and xlsx. This could be more prone to virus and malware [12:11:56] Doesn't mean clamav will find them though [12:12:14] protected function verifyFile() { [12:12:14] $status = $this->verifyPartialFile(); [12:12:15] Well I suppose docx and xlsx could have macro viruses [12:12:17] Weird naming is weird [12:12:35] I guess that verifyPartialFile is checked on both partial and full files [12:12:36] Maybe [12:13:34] bawolff: If you're bored... Mind sanity checking my backports on https://gerrit.wikimedia.org/r/#/q/If56a9df5f815a58a11741c5e020bb2d43a692563 ? :P [12:13:48] Yeah, verifyFile calls verifyPartialFile, but verifyPartialFile is also called elsewhere [12:14:58] Ugh, this is why people shouldn't pass escaping type as an argument [12:15:12] Always makes for confusing code [12:18:43] * bawolff looking [12:22:21] oh, I'm stupid. I was trying to spot the flaw in my local checkout just to make sure i understood what was being fixed, was getting very confused when I wasn't seeing it [12:22:27] turns out my local checkout already has the fix [12:22:53] heh [12:24:29] you could make an argument that for the 'wiki' case, $groupname should be put through wfEscapeWikiText(), in case people choose weird group names, but i guess that doesn't really matter [12:27:57] huh, is github blocking our CI system? That's a weird error on the unit tests [12:28:17] ok, side by side diff helps tremendously on this [12:30:14] bawolff: rate limiting yeah [12:30:27] We're doing too many requests from CI/cloud seemingly [12:31:13] Reedy: yeah, those look good. Didn't test or anything, but diff looks right to me [12:31:19] ta [16:31:32] hihi [16:31:40] Can I use a Ubikey with MW login? [16:31:55] Reading about 2fa... I should read the Oauth extension [16:32:23] seems it doesn't support ubikey [16:33:51] you mean the oath extension, presumably [16:34:05] it's getting webauthn support sometime nowish [16:35:39] faceface_: Depends which version of the yubikey [16:36:02] Needs to be a 5 or later IIRC to work with webauthn [16:38:07] Reedy: nice [16:38:12] We're going to buy newones [16:47:43] tgr_: thanks, didn't spot your reply there at first [16:48:05] OK, I'll install and configure oauth and webauthn [16:48:19] oathauth [16:48:25] bit different to oauth ;) [16:48:35] Extension:OATHAuth? [16:48:42] Yeah [16:48:53] SOmhow my brain didn't see that spelling difference... [16:49:13] I was a bit confused (because I thought I understood oauth ) ;-) [16:49:22] It's a poorly named extension [16:49:27] Like numerous in MediaWiki :D [16:50:17] what is the canonical git repo for MW / 'official' MW extensions? [16:50:25] gerrit or github? [16:50:30] well, it's poorly named now that it supports webauthn [16:50:40] it made sense originally [16:50:46] tgr_: Well, webauthn is a seperate extension... [16:50:53] faceface_: gerrit [16:51:16] oh, is it? I haven't been following [16:51:23] It wasn't originally [16:51:24] Reedy: ty [16:51:44] But because of PHP requirements (it needed 7+ when MW and everything else didn't), bawolff suggested to split it out [16:51:48] And as such, it has stayed [17:09:23] man, I'm so out of date... after a git pull on the 'core' wiki, can I run the patches via the gui, or is it a php maintainence/... job? [17:10:17] You can use the web installer, it should work, but YMMV [17:10:25] php maintenance/update.php is usually "easiest" [17:10:30] ta [17:10:59] forgot to clear the jobs queue first... seems to have worked [17:36:04] so I have my public key in gerrit, but it says git clone ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WebAuthn no work [17:36:49] hello everyone ,i am trying to setup media wiki docker with this guide https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/%2B/master/DEVELOPERS.md [17:36:53] faceface_: Different username? [17:37:54] sorry connection lost so i refreshed the page so have to enter new username [17:38:35] Please make sure you have the correct access rights [17:39:08] acess rights of what ? [17:39:16] lemmy check... I just pulled OAuth Extension:OATHAuth without issue... I'm using ssh to git pull [17:39:24] hi Gaurav12345 [17:39:46] right, the remote has my username in it [17:40:13] didn't think it would matter with my public key there, but I guess it needs to match the user [17:41:01] I'm getting dumb in my old age, thanks Reedy [17:41:58] uh... the only REL branch for WebAuthn is 34... should I update my whole wiki to 34? [17:42:26] hello faceface_ can you help in setting up wikimedia docker ... [17:42:52] Gaurav12345: I'm not very familiar with docker I'm afraid... why are you chosing that method? [17:44:02] actually i am new here and just following this guide https://www.mediawiki.org/wiki/Selenium/Getting_Started/Run_tests_targeting_MediaWiki-Docker [17:44:35] What the heck?! Googling "latest stable version mediawiki" shows 31 as the top hit [17:47:13] Well it was latest as of the day the release notes for that version were released [17:51:33] Yeah, google issue [19:21:59] Hello everyone [19:22:24] hello gaurav [19:23:08] Am truing to setup media wiki thorough docker on my machine, but stuck on an error, can anyone help me in this? [19:25:36] you might need to tell us the error for anyone to help you [19:30:50] Yes sure, actually i am new here so doing a micro task so it say install media wiki thorough this guide https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/%2B/master/DEVELOPERS.md [19:30:50] So i stuck on command docker-compose exec mediawiki composer update. Error was compose.json not found in var/www/html [19:31:31] It sounds like a missing r [19:31:35] should be composer.json [19:31:49] Typical mistake.. [19:33:12] A typo on your side? [19:36:04] I just type incorrectly in my message [19:36:21] Does composer.json exist? [19:36:25] Yes [19:36:26] It's a default MW shipped file [19:36:30] gaurav: can you share the commands you ran in your terminal? [19:36:36] Aha, saved me a ping :D [19:36:46] gaurav: you can use dpaste.de [19:36:59] for sharing the terminal commands & output [19:37:16] It is in core branh of mediawiki repository [19:39:35] gaurav: what does `docker-compose config` show? [19:40:15] commands https://usercontent.irccloud-cdn.com/file/QlNDy6Xe/irccloudcapture7279669329149312805.jpg [19:41:02] config https://usercontent.irccloud-cdn.com/file/DvLDQmsV/irccloudcapture128078538891621183.jpg [19:41:53] gaurav: thanks [19:42:09] No problem.. [19:42:33] gaurav: so if you do `docker-compose exec mediawiki ls`, what do you see? [19:44:00] A cache file [19:44:24] Composer.json is in the main directory... [19:46:17] gaurav: can you copy paste the output? you can use https://dpaste.de [19:48:34] https://usercontent.irccloud-cdn.com/file/dAuEgBKA/irccloudcapture7695925361989659200.jpg [19:49:10] Actually i am texting thoroug irc app on phone that's why sending pictures og output, sorry for inconvenience.. [19:52:18] no worries [19:52:51] Thanks.. [19:54:04] gaurav: trying to figure out what's wrong. there's someone else who tried this out on windows without this problem (brion IIRC?) [19:55:08] Btw i installed docker toolbox from their official site documentation on windows 7.. [19:55:31] gaurav: https://docs.docker.com/compose/reference/envvars/#compose_convert_windows_paths [19:55:51] can you try setting that to 1? [19:56:51] Trying.. [19:57:23] gaurav: like, I think you can try `docker-compose down` to bring down the container, then `COMPOSE_CONVERT_WINDOWS_PATHS=1 docker-compose up -d`, then `docker-compose exec mediawiki ls` should show you the files in your core directory [19:57:51] or maybe you also need `COMPOSE_CONVERT_WINDOWS_PATHS=1 docker-compose exec mediawiki ls` [19:58:16] Ok let me try..these commands [20:00:05] ottomata: See also https://gerrit.wikimedia.org/r/#/c/releng/dev-images/+/572212/ by kostajh , seems related to what you were talking about yesterday [20:00:16] ottomata: the thing I mentioned yesterday is now up at https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/EventLogging/+/583643/ [20:00:30] kostajh: (you might find that useful as well, it looks like your usecase was devserver as well) [20:01:35] Krinkle: thanks [20:02:13] https://usercontent.irccloud-cdn.com/file/SITWW8ru/irccloudcapture5585223288558669636.jpg [20:02:13] Still showing cache only [20:04:15] gaurav: the `COMPOSER_CONVERT_WINDOWS_PATHS=1 docker-compose up -d` should be one command, not two [20:04:58] maybe this is easier, you can create a file called `.env` in the core directory that you are in, and the contents of that file should be `COMPOSER_CONVERT_WINDOWS_PATHS=1` [20:05:18] Ok ok sorry.. [20:05:43] gaurav: no worries [20:10:45] Tried both methods but stil only cache is showing [20:10:51] gaurav: signing off now, but I think that environment variable (COMPOSER_CONVERT_WINDOWS_PATHS) might fix the issue. If you search online for "windows docker toolbox docker-compose volume mount" or similar you might find other troubleshooting tips, that's where I found the reference to this environment variable. [20:11:33] It doesn't work :( [20:11:38] if you like, please file an issue on phabricator.wikimedia.org and tag the #MediaWiki-Docker project so we can update the DEVELOPERS.md documentation (once we figure out how to fix this for Windows 7 + docker toolbox) [20:12:02] Ok.. [20:12:19] Thanks for helping :) [20:12:23] gaurav: https://headsigned.com/posts/mounting-docker-volumes-with-docker-toolbox-for-windows/ maybe helps? [20:13:09] the first section in particular "Share your drive" [20:13:19] Let me try this.. [20:14:57] M not using vm here.. [20:16:55] another one https://medium.com/@Charles_Stover/fixing-volumes-in-docker-toolbox-4ad5ace0e572 [20:52:47] Krinkle: ya I commented on task [20:56:47] commented too [21:51:09] niedzielski: James_F: Jdlrobson: https://phabricator.wikimedia.org/T204176#6003558 :) [21:51:17] Volker_E: ^ [23:18:43] Thanks!