[08:59:32] Hello. I am new in MW development and I am seeking for an advice regarding my custom PrimaryAuthenticationProvider. Is this the right place to ask? TIA [09:02:03] yes [09:02:50] ok, sorry for cross-posting in wikimedia-dev too (and getting the same answer there ;-)) [09:05:32] so, what I am trying to do is to implement a new extension that authenticates user against an external system (Moodle in my case). I am in state where my beginPrimaryAuthentication() can determine if the username and password are valid and returns appropriate AuthenticationResponse for it. [09:06:25] What I need to do now is to set/update the user data (realname and email) [09:07:47] I noticed that I could use postAuthentication() for it - but is it the best way to do it? [09:12:03] my extension gets those details via curl as a part of the authentication. So I would also need to somehow keep them cached so that the later callback has access to them ... [09:18:01] mudrd8mz: i don't know the answer, but if you stay here for a while someone might know :) [09:18:41] mudrd8mz: if no one replies, try asking also at the mediawiki-l mailing list (https://www.mediawiki.org/wiki/Mailing_lists) or at https://www.mediawiki.org/wiki/Support [09:19:01] MatmaRex: thanks [10:27:46] Uh, was the useless and annoying action=historysubmit URL garbage just removed? :) [10:45:39] Nemo_bis: i'm afraid no one touched it, perhaps you enabled JavaScript? the JS code overrides the default form submission to remove the garbage when avoidable [10:46:26] I'm not aware of such a change on my end [10:47:14] But thanks for the pointer, I'll check on the other PC [14:14:31] fu [14:14:52] wtf is this shit [14:49:39] It's called life [16:23:18] hello everyone! I'm having an issue with configuring file uploads. I should start by saying that my upload directory has full permissions, and exists in my PHP config's open_basedir. [16:23:38] the issue is that when i try to upload a file, I get the following error [16:25:08] Warning: is_file(): open_basedir restriction in effect. File(/usr/share/webapps/mediawiki/images/tmp/mw-runJobs-backoffs.json) is not within the allowed path(s): (/usr/share/webapps/:/tmp/:/usr/bin/) in /usr/share/webapps/mediawiki/includes/jobqueue/JobRunner.php on line 400 [16:26:05] what I find strange is that the error is that (/usr/share/webapps/:/tmp/:/usr/bin/) is not my open_basedir... [16:26:52] any help would be greatly appreciated :) [16:33:18] drylemon: Make sure you are using the right php.ini [16:33:33] Sometimes there are separate php.ini files for the cli version and the webserver version [16:36:09] bawolff: dang, i just found the issue. open_basedir was being redefined in my apache config [16:36:21] thanks for the help though, you pushed me in the right direction [17:36:06] I have a question about editing templates. Is this the correct place to ask? [17:40:45] kettlecorn: Yeah, this is an ok place to ask [17:44:42] Great. Here's my question. I'm looking at updating ranking info for a university page that uses this template: https://en.wikipedia.org/wiki/Template:Infobox_US_university_ranking. When I update the info I want to update the citation to a source from a more recent year. However, the citation seems to be part of the template. So it seems if I update the template's citation then the citation will be incorrect for other pages tha [17:45:09] Is this normal or am I missing something? [17:47:52] Additionally, is there a better place to ask this question? [17:48:13] I want users to authenticate via LDAP. Do they have to be in the local database to log in, or can that be averted? [18:17:19] kettlecorn: sorry that no one has responded yet. I'm guessing that the #wikipedia channel is the better place to ask that question. [18:18:04] (Though I should note that, looking briefly through that template, I don't see anything about a citation - are you sure that it's part of the template?) [18:20:42] Yaron: Thanks for the response. I've also asked at wikipedia-en-help. [18:21:13] I haven't worked with templates before so I've been doing my best to parse the syntax, but it appears this template ( https://en.wikipedia.org/wiki/Template:Infobox_US_university_ranking/National ) is used by the earlier template I linked [18:21:28] The */National one is the one that contains the actual citation info [18:22:53] I thought this would be a simple correction, but now I'm concerned that if I fix the citation there numerous other pages that use the template will have their info incorrectly cited. :) [19:00:51] Hey! I am up and running a test version of MediaWiki 1.29.1 in a docker environment and I'm getting spammed in the logs about 'duplicate key value violates unique constraint "md_module_skin"' [19:01:28] It seems it tries to add a lot of theme settings over and over or something to my postgres db [19:10:42] Timelaw: in general postgres isn't well supported. you should consider switching to mysql or sqlite [19:13:20] legoktm: Okey, I'll give that a go and see if it disappears. [19:14:24] legoktm: Is MariaDB a good option? [19:14:44] yes, that's equivalent to mysql [19:18:28] I'm using mw.hook('wikipage.content').add(foo); in an attempt to have a script run during side by side live previews [19:18:39] yet it is still running *before* the content of the preview is loaded [19:22:59] If I set a breakpoint when the hook is run, I can clearly see the live preview's content has not filled in yet [19:24:05] ah ha [19:24:20] mw.hook('wikipage.content').fire($content); is directly before context.modules.preview.$preview.append($content); [19:38:59] Anyone here who works on WikiEditor who is willing to explain to me why the hook fires before the content is actually on the page? [19:42:23] Hello! Is there a way to collaborate on a JavaScript page in MediaWiki with default permissions, for autoconfirmed users? [20:12:04] valerio-bozzolan: you can use a normal page for that, just not a page in the MediaWiki namespace or other user's JavaScript pages [20:12:38] OK thanks, I think it's the unique good workaround [20:13:08] Ah, I don't remember, a sysop can edit another user JS page? [20:14:09] yes [20:14:29] (on normal MediaWiki installations, not on wikia) [20:15:30] Perfect, so another workaround between an user and a sysop, can be working on the lower privileges user subpage [20:15:42] (sorry for bad en) [20:17:15] yes, that's possible [20:20:36] legoktm: I am tryign to install a fresh instance of mediawiki but it only has Postgres selected, with no other options. [20:21:44] So I can't pick mysql/mariadb [20:21:49] Timelaw: that means your PHP doesn't have the mysqli extension installed/enabled [20:22:15] > sudo apt-get install php-mysql (or similar) [20:24:00] Vulpix: Running an alpine Docker image [20:24:15] Vulpix: I'm pretty sure I should have but okay [20:27:13] Vulpix: Apparently I didn't have it installed. But I assumed such a thing would be listen on the first page? Installing and trying again [20:28:51] I'm pretty sure the installer tells you it's listing the *available* drivers on your system compatible with MediaWiki, or maybe it only warns you when it doesn't find any driver available...