Page MenuHomePhabricator

Legoktm (Legoktm)
UserAdministrator

Today

  • No visible events.

Tomorrow

  • No visible events.

Sunday

  • No visible events.

User Details

User Since
Sep 19 2014, 7:30 PM (594 w, 6 d)
Roles
Administrator
Availability
Available
IRC Nick
legoktm
LDAP User
Legoktm
MediaWiki User
Unknown

Recent Activity

Today

Legoktm created T417363: Special:LintTemplateErrors with no category selected should display an index.
Fri, Feb 13, 4:30 AM · Patch-For-Review, MediaWiki-extensions-Linter

Wed, Feb 11

Legoktm added a comment to T413375: Create new {{#isbn}} parser function.

You could just edit properly and not use VisualEditor.

Wed, Feb 11, 3:53 AM · User-notice, MediaWiki-Parser

Tue, Feb 10

Legoktm added a comment to T413375: Create new {{#isbn}} parser function.

I guess T148274: Implement a convenient way to link to ISBNs without magic links should be duped into this issue now?

Tue, Feb 10, 12:49 AM · User-notice, MediaWiki-Parser

Thu, Feb 5

Legoktm closed T416416: SQL metadata files problem as Invalid.

Based on https://en.wikipedia.org/wiki/Wikipedia:Bots/Noticeboard#c-The_Anome-20260204155000-Legoktm-20260204003800 this seems like it was a misunderstanding on what was going away.

Thu, Feb 5, 10:09 PM · Data-Engineering (Q3 FY25/26 January 1st - March 31th), Dumps-Generation
Legoktm added a project to T416536: hywiki: some doi links in refs render with https with legacy parser and http with Parsoid: MediaWiki-extensions-SecureLinkFixer.
Thu, Feb 5, 9:18 PM · MediaWiki-extensions-SecureLinkFixer, Content-Transform-Team (Work In Progress)
Legoktm added a comment to T416536: hywiki: some doi links in refs render with https with legacy parser and http with Parsoid.

I don't have a strong opinion on how this is implemented (really I haven't thought about it), I do want to flag one potential area for improvement though. The signature for the hook is:

public static function onLinkerMakeExternalLink( &$url, &$text, &$link, &$attribs, $linktype ) { ... }
Thu, Feb 5, 9:17 PM · MediaWiki-extensions-SecureLinkFixer, Content-Transform-Team (Work In Progress)

Wed, Feb 4

Legoktm added a comment to T412630: Audit heavy linter categories to see if we really need them.

Personally, I have been running my bot on bnwikibooks to just add color declarations wherever Linter complains about them being missing,

Wed, Feb 4, 12:25 AM · MediaWiki-extensions-Linter
Legoktm added a comment to T412630: Audit heavy linter categories to see if we really need them.

The template is perfectly readable in both dark mode and light mode, despite the lack of an explicit color declaration alongside the bgcolor declaration. Furthermore, when I inspect the problem element, I see that color:black is indeed being assigned to it, inherited from the .infobox parent element. So the element that is tagged as missing a color actually does have one, and it's working fine.

Wed, Feb 4, 12:19 AM · MediaWiki-extensions-Linter

Mon, Jan 26

Legoktm placed T371073: wikitext/to/lint API is returning an empty array for night-mode-unaware-background-color lint errors up for grabs.
Mon, Jan 26, 11:00 PM · Essential-Work, MediaWiki-extensions-Linter, Parsoid
Legoktm added a comment to T412630: Audit heavy linter categories to see if we really need them.

Edited the description to use the category names instead of the numerical IDs.

Mon, Jan 26, 6:15 AM · MediaWiki-extensions-Linter
Legoktm updated the task description for T412630: Audit heavy linter categories to see if we really need them.
Mon, Jan 26, 6:05 AM · MediaWiki-extensions-Linter
Legoktm created T415477: Can't resolve duplicate-ids issues by editing Parsoid HTML.
Mon, Jan 26, 2:50 AM · Content-Transform-Team (Work In Progress), Patch-For-Review, MediaWiki-extensions-Linter, Parsoid

Sun, Jan 25

Legoktm added a comment to T413944: sr:Модул:No globals/док has the wrong content model.

Trying to edit https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Message_box gives "Scribunto module" content is not allowed on page మూస:Message box in slot "Main" which feels related but might be a distinct issue?

Sun, Jan 25, 8:07 PM · Scribunto, MediaWiki-ContentHandler

Thu, Jan 22

Legoktm created T415233: Parsoid blindly uses srcTagName even if node name has changed.
Thu, Jan 22, 4:28 AM · Essential-Work, Content-Transform-Team (Work In Progress), Parsoid

Wed, Jan 21

Legoktm added a comment to T413944: sr:Модул:No globals/док has the wrong content model.

I wonder why page_content_model was wrongly set though. Is this the same issue as T108663#1741046? :/ If so, might be worth resurrecting a modified version of https://phabricator.wikimedia.org/source/mediawiki/browse/REL1_43/maintenance/fixDefaultJsonContentPages.php;848a9f279f42ed0edb0c83bde65254585bc829cb but for Scribunto.

Wed, Jan 21, 4:18 AM · Scribunto, MediaWiki-ContentHandler

Jan 7 2026

Legoktm created T413944: sr:Модул:No globals/док has the wrong content model.
Jan 7 2026, 4:38 AM · Scribunto, MediaWiki-ContentHandler

Jan 5 2026

Legoktm closed T319104: mwbot-rs: Support operation on multiple wikis as Resolved.

This is basically implemented now, I think there are still some rough edges, like the save page message not indicating what wiki the page was saved on, but I've been using it for the past few hours and it's pretty functional. Thanks to @XtexChooser for doing the first part in mwapi last year :)

Jan 5 2026, 7:08 AM · Patch-For-Review, mwbot-rs (mwbot)

Dec 30 2025

Legoktm created T413591: Signatures should not be allowed to contain an id attribute.
Dec 30 2025, 3:59 AM · MediaWiki-extensions-Linter

Dec 27 2025

Legoktm closed T382975: RecordLintJob should be enqueued lazily as Resolved.

Please re-open if that wasn't sufficient.

Dec 27 2025, 5:52 AM · MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), Performance Issue, MediaWiki-extensions-Linter

Dec 24 2025

Legoktm added a comment to T319097: mwbot-rs: Split up node.rs.

P.S. I added you to https://www.mediawiki.org/w/index.php?title=Mwbot-rs&diff=8101926&oldid=7828836, please feel free to update it if you'd like to be credited differently. I couldn't find a wiki account under your username so I linked to gitlab.

Dec 24 2025, 10:52 PM · good first task, mwbot-rs (parsoid)
Legoktm closed T319097: mwbot-rs: Split up node.rs as Resolved.

Sorry, I had missed your initial ping. Thanks for the patch, it's great!!

Dec 24 2025, 10:49 PM · good first task, mwbot-rs (parsoid)

Dec 21 2025

Legoktm added a comment to T398874: Potentially move mwseaql to the monorepo.

@GalStar no objection to moving it in the monorepo, I had kept it separate since it didn't have any intra-project dependencies whereas most of the monorepo depends on each other.

Dec 21 2025, 2:11 AM · mwbot-rs (mwseaql)

May 28 2025

Legoktm added a comment to T395387: "We are having a problem billing the wikimedia organization" on GitHub.

Thanks all!

May 28 2025, 9:48 PM · Release-Engineering-Team, Wikimedia-GitHub

May 27 2025

Legoktm created T395387: "We are having a problem billing the wikimedia organization" on GitHub.
May 27 2025, 10:49 PM · Release-Engineering-Team, Wikimedia-GitHub

Apr 29 2025

Legoktm added a comment to T392834: mwmaint1002 is out of disk space.
elukey@mwmaint1002:/home$ sudo du -hs /home/* | sort -h | tail
...
11G	/home/legoktm

The home dirs may be a quick one for a cleanup, we have a total of 62G used there, but there are few big ones.

@Legoktm

Apr 29 2025, 1:03 AM · serviceops-radar, SRE

Apr 18 2025

Legoktm added a comment to T382424: Scribunto fails with confusing error message for invalid #interlanguagelink langcode.

It's not limited to this particular parser function and the problem did exist before its introduction.

It seems the same reponse format from the parser is used for 'invalid input' and 'function not found' cases, and so Scribunto has no way of differentiating these.

Apr 18 2025, 7:34 PM · MediaWiki-Interwiki, MediaWiki-Parser, Scribunto
Legoktm added a project to T392279: CVE-2025-53502: HTML injection in FeaturedFeeds output from i18n message: MediaWiki-extensions-FeaturedFeeds.
Apr 18 2025, 3:38 AM · SecTeam-Processed, MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Vuln-XSS, MediaWiki-extensions-FeaturedFeeds, Security, Security-Team
Legoktm created T392279: CVE-2025-53502: HTML injection in FeaturedFeeds output from i18n message.
Apr 18 2025, 3:38 AM · SecTeam-Processed, MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Vuln-XSS, MediaWiki-extensions-FeaturedFeeds, Security, Security-Team
Legoktm added a project to T392276: CVE-2025-6591: HTML injection in API action=feedcontributions output from i18n message: Patch-For-Review.

Apr 18 2025, 2:34 AM · MW-Interfaces-Team, MW-1.44-release, MW-1.43-release, MW-1.42-release, MW-1.39-release, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Legoktm added a project to T392276: CVE-2025-6591: HTML injection in API action=feedcontributions output from i18n message: MediaWiki-Action-API.
Apr 18 2025, 2:30 AM · MW-Interfaces-Team, MW-1.44-release, MW-1.43-release, MW-1.42-release, MW-1.39-release, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Legoktm created T392276: CVE-2025-6591: HTML injection in API action=feedcontributions output from i18n message.
Apr 18 2025, 2:29 AM · MW-Interfaces-Team, MW-1.44-release, MW-1.43-release, MW-1.42-release, MW-1.39-release, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Apr 17 2025

Legoktm added a comment to T178146: Add support for a newer Lua version than Lua 5.1 to luasandbox.

I've started https://www.mediawiki.org/wiki/Extension:Scribunto/New_Lua_version. Please add other new Lua features that would be useful there (I've already copied @Od1n's comment above).

Apr 17 2025, 12:55 AM · LuaSandbox, Scribunto

Apr 15 2025

Legoktm added a comment to T178146: Add support for a newer Lua version than Lua 5.1 to luasandbox.

@tstarling Got any updated opinions about this in 2025?

Apr 15 2025, 6:04 PM · LuaSandbox, Scribunto

Apr 5 2025

Legoktm closed T386650: Tag a new release of poolcounter service as Resolved.

I pushed a 1.2.0 tag. On the production side, there's nothing worth upgrading for.

Apr 5 2025, 11:42 PM · Release, MediaWiki-Debian, PoolCounter, MediaWiki-Platform-Team

Apr 2 2025

Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

Report for what incident? The missing ETags? The handling of the redirect parameter? Both were regrettable bugs, but not substantial operational issues or problems with broad impact on users.

Apr 2 2025, 5:49 AM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T389885: Display WMF cluster permissions granted to a Developer account.

Also, is "puppet groups" a good label for this? Is there a better term?

Apr 2 2025, 5:27 AM · Tool-ldap
Legoktm claimed T389885: Display WMF cluster permissions granted to a Developer account.

Let's do it. Here's what I rigged up locally (will push to GitLab in a bit).

Apr 2 2025, 5:26 AM · Tool-ldap
Legoktm added a comment to T389030: mwapi: allow changing api_url after construction.

See T319104: mwbot-rs: Support operation on multiple wikis. I had always imagined that mwbot would have the logic to support multi-wiki operation and mwapi would continue to stay single-wiki for simplicity. I'm not really fixed on that concept and would love to see some progress on this, so feel free to give it a shot.

Apr 2 2025, 2:39 AM · mwbot-rs (mwapi)

Feb 8 2025

Legoktm added a comment to T385156: Patch Demo can publicly reveal User-Agents via the CheckUser extension.

Also IANAL the privacy policy seems ambiguous here to me.

Feb 8 2025, 5:53 AM · Catalyst (kokosila), Privacy Engineering, SecTeam-Processed, Vuln-Infoleak, Security, Security-Team

Jan 31 2025

Legoktm added a comment to T357603: REST API: ETag missing from some responses from page HTML endpoint.

To expand on that, if we think it's older cached content, shouldn't there be a corresponding change that has fixed it for new entries? And given there's a max time limit on varnish content, said change would've needed to be deployed within that time window.

Jan 31 2025, 4:34 PM · MW-1.44-notes (1.44.0-wmf.16; 2025-02-11), MW-Interfaces-Team (MWI-Sprint-2 (2025-01-28 to 2025-02-11)), MediaWiki-REST-API
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

@HCoplin-WMF is there a reason no incident report was ever written for this? (If it was, I couldn't find it when searching https://wikitech.wikimedia.org/wiki/Incident_status)

Jan 31 2025, 5:20 AM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T357603: REST API: ETag missing from some responses from page HTML endpoint.

I 'll take a closer look tomorrow but this is indeed possibly older cached content. See for example

Jan 31 2025, 5:19 AM · MW-1.44-notes (1.44.0-wmf.16; 2025-02-11), MW-Interfaces-Team (MWI-Sprint-2 (2025-01-28 to 2025-02-11)), MediaWiki-REST-API

Jan 26 2025

Legoktm added a comment to T384216: Reroute RESTBase /page/lint/ endpoints to MediaWiki REST endpoints.

The endpoints don't seem to always be equivalent. For example, a POST request to https://en.wikipedia.org/api/rest_v1/transform/wikitext/to/lint/User%20talk:Loganwasgood returns:

[{"type":"night-mode-unaware-background-color","dsr":[59,7185,47,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[241,2032,95,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[339,2029,213,6],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2033,7182,47,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2081,4771,111,0],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2193,4771,83,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[4772,7179,114,0],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[4887,7179,83,2],"templateInfo":null,"params":[]}]
Jan 26 2025, 6:45 PM · MW-Interfaces-Team (MWI-Sprint-23 (2025-11-18 to 2025-12-02)), MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), serviceops, DiscussionTools, Patch-For-Review, MediaWiki-REST-API, RESTBase Sunsetting
Legoktm merged T361694: Search box suggestions get only English description for Module namespace into T299279: Pages with Scribunto content model get English content language and short description.
Jan 26 2025, 3:23 AM · Wikidata, MediaWiki-extensions-Wikibase-Client, Scribunto
Legoktm merged task T361694: Search box suggestions get only English description for Module namespace into T299279: Pages with Scribunto content model get English content language and short description.
Jan 26 2025, 3:23 AM · Scribunto, MediaWiki-User-Interface (autocomplete search)
Legoktm claimed T356771: Allow canonical namespace names for module namespace redirects.
Jan 26 2025, 3:19 AM · Patch-For-Review, Scribunto, MediaWiki-Redirects
Legoktm created T384788: Toolforge webservice still accepts --canonical but complains about it in service.template.
Jan 26 2025, 2:58 AM · cloud-services-team, Toolforge
Legoktm claimed T319109: mwbot-rs: Option to error on new messages.
Jan 26 2025, 2:19 AM · Patch-For-Review, mwbot-rs (mwbot)
Legoktm closed T349520: Cannot pass Template as params to Template as Declined.

Closing as declined since I don't think we can support this until Parsoid supports editing parameters as HTML instead of wikitext. (Please re-open if I'm mistaken)

Jan 26 2025, 1:09 AM · mwbot-rs (parsoid)
Legoktm closed T354035: Switch mwbot-rs to use rest.php v1 instead of restbase as Resolved.

This is done in parsoid 0.10.0-rc.4; aiming to do a stable release soon. I was peeking at the git log and it was a team effort by myself, xtex, mirror-kt and CountCount :)

Jan 26 2025, 1:05 AM · mwbot-rs (parsoid)
Legoktm added a comment to T295648: Provide API that exposes DiscussionTools data structure.

(The code doing that can do it to Parsoid HTML too, and it will need to be introduced when we start trying to use Parsoid HTML for page views, but we didn't need it so far, so it's not there.)

Jan 26 2025, 12:59 AM · DiscussionTools
Legoktm closed T384568: Masto-Collab: Logging in results in 500 - etag is missing as Resolved.

@Peachey88 should be fixed now, I've worked around the MW bug.

Jan 26 2025, 12:49 AM · Tool-masto-collab

Jan 25 2025

Legoktm added a comment to T384568: Masto-Collab: Logging in results in 500 - etag is missing.

See T374683#10495069.

Jan 25 2025, 10:57 PM · Tool-masto-collab
Legoktm added a subtask for T384568: Masto-Collab: Logging in results in 500 - etag is missing: T357603: REST API: ETag missing from some responses from page HTML endpoint.
Jan 25 2025, 10:57 PM · Tool-masto-collab
Legoktm added a parent task for T357603: REST API: ETag missing from some responses from page HTML endpoint: T384568: Masto-Collab: Logging in results in 500 - etag is missing.
Jan 25 2025, 10:57 PM · MW-1.44-notes (1.44.0-wmf.16; 2025-02-11), MW-Interfaces-Team (MWI-Sprint-2 (2025-01-28 to 2025-02-11)), MediaWiki-REST-API
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

For better or worse, all the requests I've tried on test.wikipedia.org are returning etags 🙃

Jan 25 2025, 10:55 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T357603: REST API: ETag missing from some responses from page HTML endpoint.

This has become a much bigger issue because RESTbase is now redirecting to the REST API.

Jan 25 2025, 10:52 PM · MW-1.44-notes (1.44.0-wmf.16; 2025-02-11), MW-Interfaces-Team (MWI-Sprint-2 (2025-01-28 to 2025-02-11)), MediaWiki-REST-API
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

I found T357603: REST API: ETag missing from some responses from page HTML endpoint which seems to be the cause. In the prior example, when I remove ?redirect=false, an etag shows up:

$ curl -I 'https://en.wikipedia.org/w/rest.php/v1/page/Wikipedia%3ARequests_for_adminship%2Ftheleekycauldron_2/html'| grep etag
etag: W/"1170967427/fbb0a9e1-da83-11ef-9f0b-99a171ff8019/view/html"
Jan 25 2025, 10:42 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

I didn't see a linked patch for the etag stuff but I assume someone checked/addressed it? I can't reproduce the failure on test.wikipedia.org.

The page/html endpoint returns an etag. There's no patch because that didn't change - as far as I can tell, it has been returning etags for a long time. What failure were you trying to reproduce?

Jan 25 2025, 10:35 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting

Jan 15 2025

Legoktm closed T382728: GitHub: "the given path has multiple possibilities" whilst trying to download REL1_43.tar.gz as Resolved.
Jan 15 2025, 3:06 AM · MediaWiki-Releasing, Wikimedia-GitHub
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

@Legoktm -- do you have any final concerns? If not, I think we should be good to go :)

Jan 15 2025, 3:03 AM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T354037: rest.php/v1/transform/html/to/wikitext with if-match fails with "No stashed content found for" and HTTP 412.

@Legoktm There may be no need for stashing or etags at all if you use the output of https://en.wikipedia.org/w/rest.php/v1/page/Earth/html?flavor=edit. flavor=edit makes it embed all the parsoid annotations in the HTML, which should allow the transform endpoint to turn HTML back into wikitext without the need for stashed state.

Jan 15 2025, 2:45 AM · Content-Transform-Team, MW-Interfaces-Team, RESTBase Sunsetting, MediaWiki-REST-API
Legoktm added a comment to T380015: Content API (proposal): Allow bots to opt for a lower stash ttl in exchange for a more permissive rate limit.

How do we move forward here @daniel?

Jan 15 2025, 2:44 AM · RESTBase Sunsetting, Content-Transform-Team, MediaWiki-REST-API, MW-Interfaces-Team
Legoktm added a comment to T382086: MediaWiki ships a copy of swagger-ui with license problems.

There are both security and legal issues here.

Jan 15 2025, 1:16 AM · MW-Interfaces-Team (MWI-Sprint-7 (2025-04-08 to 2025-04-22)), MW-1.44-release, SecTeam-Processed, Security-Team, WMF-Legal, Upstream, MW-1.43-release, MediaWiki-Debian, Software-Licensing, MediaWiki-REST-API
Legoktm added a comment to T383533: peerjs in VisualEditor has no unminified source.

Thanks @Legoktm! Hmm, this is technically tricky because the source is in typescript, which would require a whole extra compilation system in our build process. But I think we are ok because:

  1. PeerJS is MIT licensed
  2. VisualEditor is MIT licensed
Jan 15 2025, 12:45 AM · MW-1.43-release, MediaWiki-Debian, VisualEditor

Jan 13 2025

Legoktm created T383533: peerjs in VisualEditor has no unminified source.
Jan 13 2025, 5:44 AM · MW-1.43-release, MediaWiki-Debian, VisualEditor

Jan 5 2025

Legoktm created T383004: Parsoid read views: map with extension (cite, templatestyles) in caption results in raw UNIQ QINU marker.
Jan 5 2025, 6:42 AM · Parsoid-Read-Views (Large Wikipedias), OKR-Work, Content-Transform-Team (Work In Progress)

Dec 18 2024

Legoktm added a comment to T382044: Use static arrays for ExtensionRegistry::loadFromQueue caching.

Time is a flat circle, back to loading extension information from PHP it seems :) This was proposed as part of the original RfC even:

Reading and parsing a JSON file will be slower than loading a PHP file due to APC and other factors. However, we can mitigate that by providing a script to "compile" all the required JSON files into their PHP equivalents.

Dec 18 2024, 7:00 AM · MediaWiki-Platform-Team (Radar), Wikimedia-Performance-recommendation, Performance Issue, MediaWiki-Configuration

Nov 10 2024

Legoktm closed T378908: Simple upload doesn't upload as Resolved.

I released mwapi 0.6.1 by backporting just this fix. Thanks for reporting!

Nov 10 2024, 11:30 PM · affects-Miraheze, mwbot-rs (mwapi)
Legoktm claimed T378908: Simple upload doesn't upload.

For some reason multipart::Part::stream wasn't working, when I switch it to:

Nov 10 2024, 10:09 PM · affects-Miraheze, mwbot-rs (mwapi)

Nov 8 2024

Legoktm added a comment to T378908: Simple upload doesn't upload.

I spent a few minutes looking at this today, I started by getting:

Nov 8 2024, 11:35 PM · affects-Miraheze, mwbot-rs (mwapi)

Nov 6 2024

Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

The responses were also not returning an etag header, as previously expected.

That shouldn't have been the case... you are seeing the etags now, right?

Nov 6 2024, 10:34 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T354037: rest.php/v1/transform/html/to/wikitext with if-match fails with "No stashed content found for" and HTTP 412.

A limit of 5 edits per minute is incredibly slow (considering RESTBase let us run at 200 pages per second).

Nov 6 2024, 10:31 PM · Content-Transform-Team, MW-Interfaces-Team, RESTBase Sunsetting, MediaWiki-REST-API
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

Bill correctly identified the root cause: the core endpoitn expects redirect=no (for consistency with index.php), while RESTbase expected redirect=false. We can just accept both, see https://gerrit.wikimedia.org/r/1087568.

Nov 6 2024, 4:35 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm added a comment to T354037: rest.php/v1/transform/html/to/wikitext with if-match fails with "No stashed content found for" and HTTP 412.

When fetching HTML content for editing, use stash=true. That should return an ETag that can then be used with if-modified. I just tested it, it seems to work. Conversion of HTML that was fetched without stashing is unreliable, and always was. RESTbase was just more agressive about practive caching.

Nov 6 2024, 4:29 PM · Content-Transform-Team, MW-Interfaces-Team, RESTBase Sunsetting, MediaWiki-REST-API
Legoktm added a comment to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints.

I'll give the revert ~20 more minutes to roll out fully and report back to see if things are fixed.

Nov 6 2024, 12:08 AM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting

Nov 5 2024

Legoktm added a project to T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints: Wikimedia-Incident.

@Legoktm -- this was 100% an unintended breakage that we are working to resolve as we speak.

Nov 5 2024, 11:34 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm reopened T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints as "Open".

Most of my bots and tools that used RESTBase are now broken, and I suspect this is the cause based on timing. I expect there are probably 20-25 tools that are broken, and a similar number of bots across a number of wikis.

Nov 5 2024, 8:09 PM · User-notice-archive, MW-Interfaces-Team (MWI-Sprint-1 (2025-01-14 to 2025-01-28)), MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), serviceops, RESTBase Sunsetting
Legoktm reopened T374683: Switchover plan from RESTbase to REST Gateway for rest_v1/page/html and rest_v1/page/title endpoints, a subtask of T373716: Reroute RESTbase Parsoid endpoints to core's REST endpoints, as Open.
Nov 5 2024, 8:09 PM · MediaWiki-REST-API, RESTBase Sunsetting, MW-Interfaces-Team
Legoktm added a comment to T378908: Simple upload doesn't upload.

Upload does not go through, and Some("TODO".to_string()) is returned instead

Nov 5 2024, 6:22 PM · affects-Miraheze, mwbot-rs (mwapi)

Nov 3 2024

Legoktm closed T378437: I keep getting Toolforge messages about rustup as Resolved.

Should be fixed now, I bumped up the memory: https://wikitech.wikimedia.org/w/index.php?title=Tool%3ARustup&diff=2240867&oldid=2236350

Nov 3 2024, 5:04 AM · Tools
Legoktm claimed T378437: I keep getting Toolforge messages about rustup.

Sorry Magnus! I thought I had fixed this but guess not.

Nov 3 2024, 3:37 AM · Tools
Legoktm added a comment to T378882: Install mariadb-dump on Toolforge bastions.

If you use the job framework (see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Jobs_framework), there's a mariadb image which contains mysqldump.

Nov 3 2024, 2:35 AM · cloud-services-team, Toolforge
Legoktm added a comment to T378886: Make it clear when an action is allowed only by global rights.

To be clear, I'm not blaming either of you - just highlighting a process failure that should be addressed.

Nov 3 2024, 2:30 AM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, MediaWiki-User-management

Oct 30 2024

Legoktm added a comment to T377905: VisualEditor's dompurify is vulnerable to CVE-2024-45801 and CVE-2024-47875.

Thanks for getting the update done; do we know if this is exploitable and merits backports?

Oct 30 2024, 11:48 PM · MediaWiki-Debian, MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), SecTeam-Processed, Vuln-VulnComponent, VisualEditor, Security, Security-Team

Oct 25 2024

Legoktm added a comment to T343131: Commons database is growing way too fast.

The new ccorg interwiki has now been added, so I've submitted two patches:

Oct 25 2024, 2:31 AM · MW-1.44-notes (1.44.0-wmf.3; 2024-11-12), Patch-For-Review, MW-1.42-notes (1.42.0-wmf.23; 2024-03-19), MediaWiki-Platform-Team (Radar), Data-Persistence (work done), Commons
Legoktm added a comment to T347982: scap update-interwiki-cache is broken.

The general lack of output on the command isn't helpful either:

Oct 25 2024, 1:51 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Platform-Team (Radar), Scap
Legoktm added a comment to T378157: SUL Integration for eventyay (Wikimania virtual event platform).

our open source virtual event platform for Wikimania (eventyay.com)

Oct 25 2024, 1:29 AM · Traffic, MediaWiki-Platform-Team (Radar), SecTeam-Processed, Security

Oct 24 2024

Legoktm added a comment to T377497: Functional replacement for importImages.php on Kubernetes.

I'm not 100% sure what the purpose of allowlisting is here.

I think the point is to allow people to upload only from sites known to have free licenses to prevent upload-by-url from being misused as a vector for copyvios.

Oct 24 2024, 10:25 PM · serviceops, MW-on-K8s

Oct 23 2024

Legoktm closed T376769: https://ldap.toolforge.org/ integration assumes that `cn` and `uid` are equivalent as Resolved.

The Phabricator part of this was deployed, so we should be all set here!

Oct 23 2024, 5:03 PM · Phabricator (2024-10-22), Tool-ldap
Legoktm added a project to T377905: VisualEditor's dompurify is vulnerable to CVE-2024-45801 and CVE-2024-47875: VisualEditor.
Oct 23 2024, 1:11 AM · MediaWiki-Debian, MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), SecTeam-Processed, Vuln-VulnComponent, VisualEditor, Security, Security-Team
Legoktm created T377905: VisualEditor's dompurify is vulnerable to CVE-2024-45801 and CVE-2024-47875.
Oct 23 2024, 1:11 AM · MediaWiki-Debian, MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), SecTeam-Processed, Vuln-VulnComponent, VisualEditor, Security, Security-Team

Oct 17 2024

Legoktm closed T377409: Shut down ldap-beta tool as Resolved.
Oct 17 2024, 2:18 AM · Tool-ldap
Legoktm added a comment to P70205 explain.

with linter_cat = 25

Oct 17 2024, 12:39 AM
Legoktm created P70205 explain.
Oct 17 2024, 12:34 AM

Oct 16 2024

Legoktm added a comment to T376769: https://ldap.toolforge.org/ integration assumes that `cn` and `uid` are equivalent.

Thanks, just deployed: https://gitlab.wikimedia.org/toolforge-repos/ldap/-/commit/7b5baa2b2f25f2ba2e88070bff8319fb20a062f4

Oct 16 2024, 11:14 PM · Phabricator (2024-10-22), Tool-ldap

Oct 15 2024

Legoktm added a comment to T336978: tool-nfp should not manually concatenate SQL.

I believe I filed this ticket because certain developers were strongly pushing the use of query builders in MediaWiki, so it seemed like a good general pattern for tools too. Maybe the tool author can check in with one of those MediaWiki developers for help? :)

Oct 15 2024, 6:05 PM · Tool-nfp
Legoktm added a comment to T376769: https://ldap.toolforge.org/ integration assumes that `cn` and `uid` are equivalent.

Hmm, they’re not even 404s, but 500s for me. Both the space and the ‘ń’ seem to cause that.

Oct 15 2024, 5:48 PM · Phabricator (2024-10-22), Tool-ldap

Oct 10 2024

Legoktm added a comment to T376769: https://ldap.toolforge.org/ integration assumes that `cn` and `uid` are equivalent.

Deployed https://gitlab.wikimedia.org/toolforge-repos/ldap/-/commit/99594edfa46508acc8d3f286472e6f2dbd8c08e9

Oct 10 2024, 1:04 AM · Phabricator (2024-10-22), Tool-ldap

Oct 9 2024

Legoktm claimed T376769: https://ldap.toolforge.org/ integration assumes that `cn` and `uid` are equivalent.

Ack, thanks for the explanation. I'll create a new /cn/ route then and will send a MR to update Phabricator's links too.

Oct 9 2024, 4:57 PM · Phabricator (2024-10-22), Tool-ldap