Page MenuHomePhabricator

Bawolff (Brian Wolff)
Busy-bodyAdministrator

Today

  • No visible events.

Tomorrow

  • No visible events.

Wednesday

  • No visible events.

User Details

User Since
Oct 25 2014, 1:53 AM (581 w, 2 d)
Roles
Administrator
Availability
Available
IRC Nick
Bawolff
LDAP User
Brian Wolff
MediaWiki User
Bawolff [ Global Accounts ]

Hi!

Recent Activity

Mon, Dec 8

Bawolff added a comment to T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs.

Personally, i don't think this mitigation is worth it given the low risk. After all, most API requests aren't even authenticated.

Mon, Dec 8, 3:51 AM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API

Thu, Nov 27

Bawolff added a comment to T411210: a backslash is inserted before special characters into localSettings.php.

See https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing

Thu, Nov 27, 11:55 PM · SecTeam-Processed, MediaWiki-libs-Rdbms, MediaWiki-Installer
Bawolff changed the visibility for T411210: a backslash is inserted before special characters into localSettings.php.
Thu, Nov 27, 8:12 PM · SecTeam-Processed, MediaWiki-libs-Rdbms, MediaWiki-Installer
Bawolff added a comment to T411210: a backslash is inserted before special characters into localSettings.php.

I'm actually not sure what the issue you are reporting here is. All of this is expected behaviour.

Thu, Nov 27, 8:11 PM · SecTeam-Processed, MediaWiki-libs-Rdbms, MediaWiki-Installer
Bawolff added a comment to T411210: a backslash is inserted before special characters into localSettings.php.

"****\$" is the correct way to write ###$ in php

Thu, Nov 27, 8:08 PM · SecTeam-Processed, MediaWiki-libs-Rdbms, MediaWiki-Installer

Fri, Nov 21

Bawolff added a comment to T7535: Uploading different types of files (text files: *.mol, *.pdb).

See https://en.wikipedia.org/wiki/Template:CineMol for a pure lua solution.

Fri, Nov 21, 2:36 PM · Commons, Multimedia, MediaWiki-File-management

Mon, Nov 17

Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

To be clear, the static parts of vega only. Vega had a lot of dynamic interactive features (which nobody ever used) which isn't viable with this method. Additionally some data sources are not available from lua (e.g. i think vega let you make sparql queries)

Mon, Nov 17, 3:42 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Nov 12 2025

Bawolff added a comment to T401987: Consider deprecating/removing the xslt option from the action api.

According to turnilo we are getting a couple of hundred requests per day with the xslt= parameter set. All for action=parse, from various IPs with UA strings that look like browsers. That suggests a Gadget.

EDIT: it uses https://en.wiktionary.org/wiki/MediaWiki:ExtractFirst.xsl which exists on several .wikis

Nov 12 2025, 11:53 AM · MW-Interfaces-Team (MWI-Sprint-23 (2025-11-18 to 2025-12-02)), Vuln-XSS, MediaWiki-Action-API, Technical-Debt
Bawolff added a comment to T403385: Restrict project workboard access to logged in users only.

While I appreciate this probably wasn't done lightly, i do find it sad as before people become contributors they have to be lurkers, and cutting off lurker access may reduce our stream of eventual contributors.

Nov 12 2025, 8:10 AM · collaboration-services, Essential-Work, User-brennen, Phabricator (2025-11-04), Release-Engineering-Team (Doing 😎)

Nov 4 2025

Bawolff added a comment to T354228: Formalize expectation for CSS sanitizer of level of W3C support.

I'd propose that we abandon following specific specs, and instead use baseline of -3 years ago (So right now that would be baseline 2022). This would roughly correspond with what mediawiki's browser compatibility is for grade A browsers - https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix

Nov 4 2025, 8:37 AM · Documentation, TemplateStyles, css-sanitizer
Bawolff added a comment to T394963: Allow unknown properties in css-sanitizer.

This kind of comes down to what is the threat model of css-sanitizer and what does it want to prevent. I feel like a lot of css-sanitizer development is paralyzed by not knowing what the goal is.

Nov 4 2025, 6:40 AM · CSS, TemplateStyles, css-sanitizer

Nov 2 2025

Bawolff closed T405519: Support css variables inside calc() in template styles as Resolved.

This might be a little in the weeds for tech news, but i think this is an interesting change for wikipedians who write templates with TemplateStyles as it opens up some new possibilities such as a limited form of having template parameters affect templatestyles.

Nov 2 2025, 12:12 AM · User-notice, Security, TemplateStyles, css-sanitizer

Nov 1 2025

Bawolff closed T43498: Expose image metadata to wikitext as Resolved.
Nov 1 2025, 11:23 PM · MW-1.46-notes (1.46.0-wmf.1; 2025-11-05), Scribunto, Patch-For-Review, Commons, MediaWiki-extension-requests

Oct 31 2025

Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

For a non-graph example, I made a template that can render molecules using this feature - https://en.wikipedia.org/wiki/Module:CineMol . Its a very open-ended feature, so your imagination is really the limit.

Oct 31 2025, 12:05 AM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Oct 30 2025

Bawolff added a comment to T408763: Extract Sony proprietary exif extensions.

Looks like this is about: https://exiftool.org/TagNames/Sony.html

Oct 30 2025, 8:39 AM · MediaWiki-File-management, Commons
Bawolff renamed T408763: Extract Sony proprietary exif extensions from Allow non-standard EXIF metadata to be displayed for an image file on Wikimedia Commons to Extract Sony proprietary exif extensions.
Oct 30 2025, 8:30 AM · MediaWiki-File-management, Commons

Oct 27 2025

Bawolff added a comment to T334372: Add support for inline SVG.

I don't understand why T405861 (Lua implementation) was merged and not this task. The effects for readers are the same, but T405861 only works in Lua (so less use cases for creators). I don't understand this decision.

Oct 27 2025, 7:40 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser

Oct 26 2025

Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

In this solution, SVG is treated like a monolith. Perhaps, it structure could be represented by nested Lua tables corresponging to nested SVG elements?

Oct 26 2025, 8:15 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Oct 24 2025

Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

I think this feature sounds exciting, per your comments and linked-experiments above, and I worry the current draft-entry, and the documentation it links to, doesn't communicate that clearly to newcomers to this feature. In particular, the documentation doesn't seem to contain any specific examples of how this can be used. We don't usually link to user-sandboxes, especially English-language-only ones, so that's not a great option.
How could we improve the announcement, and the linked documentation, so that the powerful possibilities are more obvious to readers?

Scribunto modules can now be used to generate SVG images. This can be used to build charts, graphics and other visualizations dynamically through Lua, reducing the need to compose them externally and upload them as files.

Oct 24 2025, 10:17 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto
Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

The stuff in my subpage is kind of cool demos but probably not the features envisioned usecase.

Oct 24 2025, 5:54 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Oct 23 2025

Bawolff added a comment to T408169: Perhaps WikiPage::doViewUpdates should not be checking if DB is read only.

I think i might have missed a factor here.

Oct 23 2025, 10:57 PM · Performance Issue
Bawolff updated the task description for T408169: Perhaps WikiPage::doViewUpdates should not be checking if DB is read only.
Oct 23 2025, 10:48 PM · Performance Issue
Bawolff created T408169: Perhaps WikiPage::doViewUpdates should not be checking if DB is read only.
Oct 23 2025, 10:48 PM · Performance Issue
Bawolff added a comment to T408120: api-gateway helm chart: don't disable Lua for no_csp flag..

Am i correct in assume the CSP header in question is: default-src 'none'; frame-ancestors 'none' ? That's restrictive enough to break pretty-printing and help pages.

Oct 23 2025, 7:56 PM · SecTeam-Processed, MW-Interfaces-Team, serviceops, OKR-Work, FY2025-26 KR 5.1
Bawolff added a comment to T345858: Automatically purge page titles that never exist from watchlist.

I agree with Danny that I think this should be declined. There are legit reasons to watch non-existent pages.

Oct 23 2025, 7:49 PM · Moderator-Tools-Team, Vuln-Infoleak, SecTeam-Processed, Security, MediaWiki-Watchlist

Oct 20 2025

Bawolff added a comment to T406724: Clean up watchlist and user properties of users if they don't log in for certain time.

I was under the impression that user_touched was not updated on login. Maybe I'm mistaken but a quick look through the code I don't see anything that would set it on login.

Oct 20 2025, 9:18 PM · Patch-For-Review, MW-1.46-notes (1.46.0-wmf.1; 2025-11-05), MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), User-notice, Moderator-Tools-Team, MediaWiki-Core-Preferences, MediaWiki-Watchlist, DBA
Bawolff added a comment to T407709: SVG content model.

I created a POC for this. I'm not sure how useful it is though. I was mainly aiming to have the normal transclusion syntax for such pages return the image instead of the code. But it turns out Content's getWikitextForTransclusion() is expected to return wikitext without strip markers, so it doesn't work unless/until <svg> is recognized markup (T334372).

Also, even if it worked, for SVG code to accept parameters (eg. {{{widith|20}}}), the parser will have to be run on the code, which could result in surprises in cases where SVG code looks like wiki code. (Unless there's a way to tell the parser to expand just parameters and ignore other wiki markup?)

Oct 20 2025, 7:53 PM · Patch-For-Review, SVG, MediaWiki-ContentHandler
Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

Another interesting idea would be if there could be some :addVariables() lua call, which would inject into the svg a style tag containing all the skin's css color variables (e.g. --color-base et al). Probably kind of hard at the moment due to the way skins are structured.

Oct 20 2025, 7:51 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto
Bawolff added a comment to T407159: Multiple failed attempts to log in to Wikimedia Commons as ErfgoedBot.

Could you provide the link from Special:OAuthListConsumers? I.e. something like Special:OAuthListConsumers/view/[hash]. When searching there I was unable to find any OAuth applications with the name ErfgoedBot-Toolforge or variants of it, nor did I find any that were published by Multichill.

Oct 20 2025, 12:35 AM · Wiki-Loves-Monuments-Database, SecTeam-Processed, MediaWiki-Platform-Team, Security

Oct 19 2025

Bawolff changed the visibility for T407159: Multiple failed attempts to log in to Wikimedia Commons as ErfgoedBot.
Oct 19 2025, 10:00 PM · Wiki-Loves-Monuments-Database, SecTeam-Processed, MediaWiki-Platform-Team, Security
Bawolff added a project to T407159: Multiple failed attempts to log in to Wikimedia Commons as ErfgoedBot: MediaWiki-extensions-LoginNotify.
Oct 19 2025, 9:40 PM · Wiki-Loves-Monuments-Database, SecTeam-Processed, MediaWiki-Platform-Team, Security
Bawolff added a comment to T407159: Multiple failed attempts to log in to Wikimedia Commons as ErfgoedBot.

Perhaps this should be public to give it more eyes. Afaict this is about account security but not a "security" bug (ie not a security vuln) and there is no private data here.

Oct 19 2025, 9:39 PM · Wiki-Loves-Monuments-Database, SecTeam-Processed, MediaWiki-Platform-Team, Security
Bawolff added a comment to T407709: SVG content model.

I created a POC for this. I'm not sure how useful it is though. I was mainly aiming to have the normal transclusion syntax for such pages return the image instead of the code. But it turns out Content's getWikitextForTransclusion() is expected to return wikitext without strip markers, so it doesn't work unless/until <svg> is recognized markup (T334372).

Oct 19 2025, 7:04 PM · Patch-For-Review, SVG, MediaWiki-ContentHandler
Bawolff added a comment to T407709: SVG content model.

Maybe it should be an "XML" content model (or perhaps an SVG model extended an XML content model). for example, i see people put random kml files as a wikipage sometimes, which would make sense to be marked as XML.

Oct 19 2025, 7:01 PM · Patch-For-Review, SVG, MediaWiki-ContentHandler
Bawolff added a comment to T407710: Allow Lua access to source code of SVG files.

Does this not run into the same security issue as described in T5593: [Epic] SVG client side rendering regarding scripts potentially uploaded before the dawn of sanitization?

Oct 19 2025, 6:55 PM · Commons, MediaWiki-File-management, Scribunto

Oct 18 2025

Bawolff closed T405861: Add support for generating non-interactive SVG images via Scribunto as Resolved.

[Forgive me if this is off topic] Some experiments taking images from the Animated_SVGs category on commons: https://en.wikipedia.org/wiki/Module:Sandbox/Bawolff/interactiveSvg

Oct 18 2025, 8:29 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Oct 17 2025

Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

One potential problem though is that when purging an image page, doing the purge POSTSEND might make the user see stale data as typically users don't have a cache busting cookie for the image server. So i guess file purges should still be PRESEND.

Oct 17 2025, 10:30 PM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache
Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

Part of the issue here is that curl removed support for http/1.1 pipelining which made this much slower. Edit: Seems like without pipelining it just opens multiple tcp connections at the same time, so the latency difference really shouldn't be that much

Oct 17 2025, 7:56 PM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache
Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

I think the next obvious question is can we make mw.title.new("Media:foo.svg"):getContent() return the text of the svg if the file is below a certain size. Then we could have lua do post processing on svg files, to e.g. change the colour of something.

Oct 17 2025, 5:12 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto
Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

I just encountered another wiki where doing these PRESEND was the cause of a major save time latency (was taking multiple seconds to send cdn purges). I think this is a major performance hurdle for most wikis using HTTP based cache purging.

Oct 17 2025, 1:47 AM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache
Bawolff added a comment to T407589: File missing from four datacenters.

I tried doing ?action=purge of the image page, which didn't change anything (Other then reset the age header), so I suspect its missing from eqiad swift but is present in codfw swift.

Oct 17 2025, 12:06 AM · SRE-swift-storage

Oct 16 2025

Bawolff added a comment to T85085: Encoded CSS comment start token allows bypassing SVG security checks.

I made backports of this patch to 1.44 and 1.43. The backports are non trivial enough I'm not sure if other people want to review them, instead of the usual self-review +2 for backports.

Oct 16 2025, 7:20 PM · MW-1.43-notes, Content-Transform-Team (Work In Progress), SecTeam-Processed, Security-Team, Security, css-sanitizer, MediaWiki-Parser
Bawolff added a comment to T85085: Encoded CSS comment start token allows bypassing SVG security checks.

Should i mention this to commons users to be on the look out for issues (keeping details vauge) or do we want to keep this on the down-low?

I think it's fine to generally discuss it once it rolls out to 1.45.0-wmf.23.

Oct 16 2025, 5:41 PM · MW-1.43-notes, Content-Transform-Team (Work In Progress), SecTeam-Processed, Security-Team, Security, css-sanitizer, MediaWiki-Parser

Oct 15 2025

Bawolff added a comment to T364685: CSS sanitizer refuses TemplateStyles variable assignment to border-color but does permit background-color.

Also if this is a threat we are worried about, seems like we should also be worried about:

Oct 15 2025, 2:55 PM · Patch-For-Review, TemplateStyles, css-sanitizer

Oct 14 2025

Bawolff added a comment to T85085: Encoded CSS comment start token allows bypassing SVG security checks.

Should i mention this to commons users to be on the look out for issues (keeping details vauge) or do we want to keep this on the down-low?

Oct 14 2025, 5:05 PM · MW-1.43-notes, Content-Transform-Team (Work In Progress), SecTeam-Processed, Security-Team, Security, css-sanitizer, MediaWiki-Parser

Oct 13 2025

Bawolff added a comment to T364685: CSS sanitizer refuses TemplateStyles variable assignment to border-color but does permit background-color.

The reason is that border: var(--foo) var(--bar) is invalid, while border-color: var(--foo) var(--bar) is valid. See T361934#9692764.

Oct 13 2025, 3:47 AM · Patch-For-Review, TemplateStyles, css-sanitizer

Oct 11 2025

Bawolff added a comment to T364685: CSS sanitizer refuses TemplateStyles variable assignment to border-color but does permit background-color.

At the very least, it doesn't make sense to allow border: var(--foo) but not allow border-color

Oct 11 2025, 3:36 PM · Patch-For-Review, TemplateStyles, css-sanitizer
Bawolff assigned T406603: Use role=alert for TOTP and recovery code error messages to Adarsh2406.
Oct 11 2025, 3:09 PM · Patch-For-Review, MediaWiki-extensions-OATHAuth, FY2025-26 WE 4.6 - Account Security (WE 4.6.4 - 2FA improvements and passkey support), Accessibility

Oct 8 2025

Bawolff added a comment to T406667: Add indication if a webp image is lossless or not.

We do display format information for other files in getLongDesc(), so it wouldn't exactly be out of place.

Oct 8 2025, 10:33 AM · MediaWiki-File-management

Oct 7 2025

Bawolff updated subscribers of T398134: Allow for using variable as fallback for var().

@cscott seems to have some objections to this at T361934

Oct 7 2025, 6:15 PM · TemplateStyles, css-sanitizer
Bawolff added a comment to T398138: Allow for using var() inside of light-dark().

This seems fine to me, but there seems to be some comments in the source code about not allowing variables in properties that support multiple comma separated colour values (E.g. border-color). I don't really understand the threat that is supposed to be about, but light-dark would fall in the same bucket.

Oct 7 2025, 5:49 PM · css-sanitizer, TemplateStyles
Bawolff added a comment to T405519: Support css variables inside calc() in template styles.

Well i guess i'll make a patch and see what people say

Oct 7 2025, 5:42 PM · User-notice, Security, TemplateStyles, css-sanitizer

Oct 5 2025

Bawolff added a comment to T320322: Support defining CSS variables in TemplateStyles.

I think the second security requirement is not really necessary if the variable name would enforce what values it might have and TemplateStyles would only accept CSS variables of a particular type. As you yourself say, it’s not a particularly strong protection anyway, so unless it would be required by TS to validate the variable values, it doesn’t seem useful to have.

Oct 5 2025, 4:01 PM · Design-System-Team, css-sanitizer, TemplateStyles
Bawolff added a comment to T320322: Support defining CSS variables in TemplateStyles.

Copying what i wrote on T200632#11221909 as its really for this ticket

Oct 5 2025, 1:38 PM · Design-System-Team, css-sanitizer, TemplateStyles
Bawolff added a comment to T406422: Reduce the cost of processing unexpanded template arguments from similar calls (through caching?).

This is a bit confusing. It might be more clear with a more minimal test case - where the example test cases are as small as possible with the least about of subtemplates as possible while still demonstrating the issue.

Oct 5 2025, 1:33 PM · Performance Issue, MediaWiki-Parser

Oct 4 2025

Bawolff added a comment to T328254: Parser function for content model {{#contentmodel:}}.

Perhaps this isn't the best place for this conversation...

Oct 4 2025, 3:57 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), MediaWiki-Parser

Oct 3 2025

Bawolff added a comment to T394396: CVE-2025-61636: Codex Special:Block vulnerable to message key XSS.

As I mentioned on gerrit already, as far as I can see, $this->buttonLabel seems to either be parsed (L63), escaped (L69) or intentionally raw HTML (L72). It shouldn't be escaped in buildCodexComponent. Instead, it should be marked as exec_html and escaped by the caller, which https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1193175 (the fix for T402313) does already.

Oct 3 2025, 7:37 AM · MW-1.44-release, MW-1.43-release, Multiblocks (Implement Codex Special:Block), SecTeam-Processed, Community-Tech (Sea Lion Squad), Vuln-XSS, Trust and Safety Product Team, MediaWiki-Blocks, Security, Security-Team

Oct 2 2025

Bawolff added a comment to T85085: Encoded CSS comment start token allows bypassing SVG security checks.

@sbassett What are next steps here?

Oct 2 2025, 2:24 PM · MW-1.43-notes, Content-Transform-Team (Work In Progress), SecTeam-Processed, Security-Team, Security, css-sanitizer, MediaWiki-Parser

Sep 30 2025

Bawolff closed T405154: Upload filter is blocking SVG files that contain embedded XMP data as Resolved.
Sep 30 2025, 4:15 PM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), Commons, MediaWiki-File-management
Bawolff added a comment to T85085: Encoded CSS comment start token allows bypassing SVG security checks.

@Bawolff impact seems acceptable to me. no concerns from my end.

Data: urls are also banned except in @font-face. The rationale behind this is unclear.

TIL... I'm guessing it is to make use of fonts and preserve rendering, which isn't otherwise possible with text, but as we do not allow non-free fonts, the usage seems pretty limited. It's also not documented anywhere else as far as I could find.

Sep 30 2025, 4:08 PM · MW-1.43-notes, Content-Transform-Team (Work In Progress), SecTeam-Processed, Security-Team, Security, css-sanitizer, MediaWiki-Parser

Sep 29 2025

Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

Session yes, if they're logged in, or reached Special:CreateAccount/Special:UserLogin. Anons get the ChronologyProtector cookie but that only lasts 10s, and might also often not be configured to exempt from caches on third-party setups.

Sep 29 2025, 4:17 AM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache
Bawolff added a comment to T405861: Add support for generating non-interactive SVG images via Scribunto.

The only exception could be Lua functions changing some attributes of the pages where they are called; like parser function can.

Sep 29 2025, 3:34 AM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), SVG, Scribunto

Sep 27 2025

Bawolff moved T405138: We should extract Iptc4xmpExt:DigitalSourceType from image metadata from Backlog to Metadata parsing on the MediaWiki-File-management board.
Sep 27 2025, 1:46 PM · MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Commons, MediaWiki-File-management, XMPReader
Bawolff moved T405161: Parse metadata in svg <metadata> tag from Backlog to Metadata parsing on the MediaWiki-File-management board.
Sep 27 2025, 1:46 PM · Commons, MediaWiki-File-management
Bawolff added a comment to T399148: PHP Warning: Only the first byte will be assigned to the string offset.

I suspect what happened here is that XMP-Reader doesn't enforce array types when the value is specified as an attribute

Sep 27 2025, 1:42 PM · Release, XMPReader, Commons, MediaWiki-File-management, Wikimedia-production-error
Bawolff added a comment to T200632: Allow template parameters to provide CSS to a templatestyles stylesheet.

I assume this is about setting the variables not using them, as you can already use var() for colour values in templatestyles.

Sep 27 2025, 6:14 AM · css-sanitizer, TemplateStyles

Sep 25 2025

Bawolff added a comment to T405138: We should extract Iptc4xmpExt:DigitalSourceType from image metadata.

@Bawolff Shall I make a release of XMPReader, or do you have some other patches in progress?

Sep 25 2025, 11:48 PM · MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Commons, MediaWiki-File-management, XMPReader
Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

Wouldn't the editor having a session prevent them from seeing stale pages?

Sep 25 2025, 8:56 PM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache
Bawolff added a comment to T334372: Add support for inline SVG.

As an aside, I just realized you can do a surprising amount of drawing with just CSS. See https://en.wikipedia.org/wiki/Module:Sandbox/Bawolff/canvas for an example.

Please note using div+css to create charts (e.g. https://en.wikipedia.org/wiki/Template:Pie_chart) may be considered a hack instead of a proper solution - the "chart" is not a proper image you can download.

Sep 25 2025, 2:27 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser
Bawolff added a comment to T334940: All Graphs broken on Wikimedia wikis (due to security issue T336556).

Why not allow to use external data? External data could easy be safe, for example if it's in JSON (and mediawiki API returns pageviews data in json and XML, also MW API couldn't return destructive data at all).

Sep 25 2025, 1:08 PM · User-notice-archive, Regression, Tech Ambassadors & Translators, MediaWiki-extensions-Graph
Bawolff added a comment to T334940: All Graphs broken on Wikimedia wikis (due to security issue T336556).

I'd just like to remind everyone that WP:IDONTLIKEIT complaints are unlikely to change hearts and minds. Individual tasks for individual missing features along with justification as to why that particular feature would be useful will be more likely to yield results.

Sep 25 2025, 1:02 PM · User-notice-archive, Regression, Tech Ambassadors & Translators, MediaWiki-extensions-Graph
Bawolff added a comment to T405301: Document why cache purging (sending HTTP PURGE) is synchronous.

In case its not clear, sending this PRESEND can cause significant latency if you are using traditional HTTP purging and have multiple cache servers. I think the request here is to change this to POSTSEND unless there is a compelling reason why doing that would be a bad idea.

Sep 25 2025, 6:16 AM · MediaWiki-Documentation, MediaWiki-Core-HTTP-Cache

Sep 24 2025

Bawolff added a comment to T405519: Support css variables inside calc() in template styles.

P.s. the goal of this task is to get a yes/no answer on if this is an acceptable idea. Once that is decided, i'm happy to do the implementation if the answer is yes.

Sep 24 2025, 8:49 PM · User-notice, Security, TemplateStyles, css-sanitizer
Bawolff updated the task description for T405519: Support css variables inside calc() in template styles.
Sep 24 2025, 8:45 PM · User-notice, Security, TemplateStyles, css-sanitizer
Bawolff updated the task description for T405519: Support css variables inside calc() in template styles.
Sep 24 2025, 8:45 PM · User-notice, Security, TemplateStyles, css-sanitizer
Bawolff updated the task description for T405519: Support css variables inside calc() in template styles.
Sep 24 2025, 8:43 PM · User-notice, Security, TemplateStyles, css-sanitizer
Bawolff added a comment to T200632: Allow template parameters to provide CSS to a templatestyles stylesheet.

I'd like to propose a compromise approach: supporting css variables only inside calc(). I think this would address Tim's concernd since calc() can only work with numeric & dimensional values.

Sep 24 2025, 8:41 PM · css-sanitizer, TemplateStyles
Bawolff created T405519: Support css variables inside calc() in template styles.
Sep 24 2025, 8:39 PM · User-notice, Security, TemplateStyles, css-sanitizer
Bawolff added a comment to T376564: Scribunto should provide a bulk ifexists check.

"This page documents the latest version of the Scribunto extension. Some features may not be deployed yet."

Sep 24 2025, 11:40 AM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Scribunto
Bawolff added a comment to T376564: Scribunto should provide a bulk ifexists check.

So, maybe this should me mentioned somehow in the manual.

Sep 24 2025, 9:37 AM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Scribunto
Bawolff added a comment to T405433: Parser function {{#lastuploader:filename}}.

I'm opposed to adding parser functions for something this niche, especially without a concrete usecase.

Sep 24 2025, 5:06 AM · Commons, MediaWiki-File-management, ParserFunctions

Sep 23 2025

Bawolff added a comment to T12561: Allow transclusion of Special:Random and related pages.

For cross reference: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/140975

Sep 23 2025, 11:39 PM · MediaWiki-Special-pages, OKR-Work
Bawolff removed projects from T376564: Scribunto should provide a bulk ifexists check: MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Patch-Needs-Improvement.

[I moved this back to "to-triage" on the user-notice work board, since this finally got merged I wanted to bring attention back to it. Hopefully that was the right thing to do].

Sep 23 2025, 11:25 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Scribunto
Bawolff added a comment to T328254: Parser function for content model {{#contentmodel:}}.
Sep 23 2025, 10:50 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), MediaWiki-Parser
Bawolff added a comment to T328254: Parser function for content model {{#contentmodel:}}.

Is it intentional that this is a non-expensive parser function?

Sep 23 2025, 10:41 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), MediaWiki-Parser
Bawolff moved T376564: Scribunto should provide a bulk ifexists check from Not ready to announce to To Triage on the User-notice board.
Sep 23 2025, 10:16 PM · User-notice-archive, MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Scribunto
Bawolff added a comment to T405138: We should extract Iptc4xmpExt:DigitalSourceType from image metadata.

I was a bit unsure on what the best i18n message for digitalSourceType is. I went with "Source of digital media", but potentially that could be misinterpreted as who provided the media or where it came from, where this field is the mechanism that was used for creating the digital file. https://www.iptc.org/std/photometadata/documentation/userguide/#_guidance_for_using_digital_source_type is the official docs on the field.

Sep 23 2025, 7:52 PM · MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Commons, MediaWiki-File-management, XMPReader
Bawolff added a comment to T405161: Parse metadata in svg <metadata> tag.

So if we wanted to extend XMPReader to also read commonly used subset of RDF in SVG files that are not xmp compliant, i think what we would have to do:

  • treat <cc:work> as <rdf:Description>
  • if we see <cc:Agent><dc:title>Some name</dc:title></cc:Agent>, we ignore the xml tags and just take the inner content. especially in dc:creator
  • [Less important]: Make http://purl.org/dc/elements/1.1 be an alias for http://purl.org/dc/elements/1.1/ (Perhaps do this in SVGMetadataExtractor instead of XMPReader
  • Be less strict on types. e.g. In xmp dc:Description is a language field, but in many generic svg files it is a simple value. You'd probably have to make it accept simple values for anything that is an array type.
Sep 23 2025, 6:47 AM · Commons, MediaWiki-File-management
Bawolff updated the task description for T405161: Parse metadata in svg <metadata> tag.
Sep 23 2025, 6:31 AM · Commons, MediaWiki-File-management
Bawolff updated the task description for T405138: We should extract Iptc4xmpExt:DigitalSourceType from image metadata.
Sep 23 2025, 6:03 AM · MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Commons, MediaWiki-File-management, XMPReader
Bawolff updated the task description for T405138: We should extract Iptc4xmpExt:DigitalSourceType from image metadata.
Sep 23 2025, 5:48 AM · MW-1.45-notes (1.45.0-wmf.21; 2025-09-30), Commons, MediaWiki-File-management, XMPReader
Bawolff added a comment to T405309: XMPReader does not properly extract urls values when they use an <rdf:value> tag.

It also seems to have a problem in certain cases it will merge the text node of a qualified statement with the next node.

Sep 23 2025, 2:54 AM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), XMPReader
Bawolff updated the task description for T405309: XMPReader does not properly extract urls values when they use an <rdf:value> tag.
Sep 23 2025, 1:21 AM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), XMPReader
Bawolff updated the task description for T405309: XMPReader does not properly extract urls values when they use an <rdf:value> tag.
Sep 23 2025, 1:19 AM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), XMPReader
Bawolff updated the task description for T405309: XMPReader does not properly extract urls values when they use an <rdf:value> tag.
Sep 23 2025, 1:16 AM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), XMPReader
Bawolff removed a project from T380231: License template in metadata: XMPReader.

[removing XMPReader tag, as this is an issue with metadata display in MediaWiki not extraction]

Sep 23 2025, 12:43 AM · MediaWiki-File-management
Bawolff added a watcher for XMPReader: Bawolff.
Sep 23 2025, 12:40 AM
Bawolff added a member for XMPReader: Bawolff.
Sep 23 2025, 12:40 AM
Bawolff created T405309: XMPReader does not properly extract urls values when they use an <rdf:value> tag.
Sep 23 2025, 12:39 AM · MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), XMPReader

Sep 22 2025

Bawolff added a comment to T162841: For uselang=qqx, make each output of the message key also a link to the local MediaWiki: page for it.

I think doing this for ->parse() would be fine, but I'd be nervous about doing this for ->escaped(). If you are using the output of ->escaped() in an attribute, but instead it outputs <a href=.. that could lead to an xss.

Sep 22 2025, 10:46 PM · I18n, MediaWiki-General