Page MenuHomePhabricator

Seb35 (Seb35)
MediaWiki gnome

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Oct 7 2014, 9:50 AM (513 w, 5 d)
Availability
Available
IRC Nick
seb35
LDAP User
Seb35
MediaWiki User
Seb35 [ Global Accounts ]

I follow MediaWiki development since 2007. Although I don’t regularly submit patches for the MediaWiki core, I act as an ambassador, submitting bugs, helping in their resolution, exchanging with the French-speaking community, improving documentation and its translation into French, etc. I developed three extensions (BackwardsTimeTravel, HSTS, and MediaWikiFarm).

Since 2016, I run a small MediaWiki consulting company in France, which help companies, associations and public sector to set up MediaWiki installations. We also have a farm mainly with private wikis; the farm is managed by MediaWikiFarm.

My GitHub account is Seb35.

Recent Activity

Fri, Aug 9

Seb35 added a comment to T253908: Beta Features: The mw-ui-feature-user-count in Special:Preferences does not update.

To fix the figures and compare in the future, there are today on nl.wp:

  • 2023 for paragraph-based edit conflict management feature,
  • 14974 for content translation,
  • 777 for IP Information.
Fri, Aug 9, 1:41 PM · BetaFeatures
Seb35 added a comment to T253908: Beta Features: The mw-ui-feature-user-count in Special:Preferences does not update.

I just closed the referenced task T112944, it was (as I understand it) a different issue: the other one is about the figures not updated in real time but only a few seconds after. This one is about a longer time frame.

Fri, Aug 9, 1:38 PM · BetaFeatures
Seb35 closed T362017: BetaFeatures does not update the usage counts for features used by zero people as Resolved.
Fri, Aug 9, 1:16 PM · MW-1.43-notes (1.43.0-wmf.18; 2024-08-13), BetaFeatures
Seb35 closed T112944: Opt-out: mw-ui-feature-user-count in Preferences-Beta features is not updated after Save as Resolved.

I added this paragraph on MediaWiki.org, this might be improved (I’m not a native speaker) but I guess it will answer if other people observe this slightly-misleading behaviour.

Fri, Aug 9, 9:45 AM · BetaFeatures
Seb35 added a comment to T112944: Opt-out: mw-ui-feature-user-count in Preferences-Beta features is not updated after Save.

Not sure it is really a bug or an unexpected behaviour on some small wikis in some conditions: the counts are updated by a job, so if the job is not executed quickly enough (between the instant the user saves and the updated Special:Preferences page appears and retrieves this number) then the count does not change.

Fri, Aug 9, 9:01 AM · BetaFeatures
Seb35 added a comment to T362017: BetaFeatures does not update the usage counts for features used by zero people.

I also experienced this issue.

Fri, Aug 9, 8:00 AM · MW-1.43-notes (1.43.0-wmf.18; 2024-08-13), BetaFeatures

Thu, Aug 8

Seb35 updated subscribers of T372041: Translations between a configurable extension and the Community Configuration aren't always consistent .

I discussed with @Nemo_bis about this.
First option would be the CommunityConfiguration reuses the messages from GrowthExperiments, but there might be situations in some languages where slight adaptations like grammar might be needed.
Second option (prefered) is to the CC messages transclude the GrowthExperiments messages, e.g. {{int:growthexperiments-homepage-suggestededits-tasktype-label-expand}}, and mark these messages as ignored in translatewiki. In any case, the CC extension is dependant of the GrowthExperiments, at least partially for managing its configuration, so there is some logic about reusing its messages.

Thu, Aug 8, 12:01 PM · Growth-Team, I18n, MediaWiki-extensions-CommunityConfiguration

Wed, Jul 31

Seb35 added a comment to T210206: Deprecate raw SQL conditions for IDatabase methods (select, insert, etc.).

Seeing these new IExpression in 1.42, it recalls me an article I read three years ago about prevention of SQLi, I mention it since it is a step further compared to the discussion here, but it remains a POC/theory. The article (in French) is here, written by a researcher then at Orange Cyberdefense (Judicaël Courant), and an equivalent conference paper in English is here; he wrote a POC in Java and I translated it into a PHP library three years ago.

Wed, Jul 31, 8:11 AM · MW-1.43-notes (1.43.0-wmf.8; 2024-06-04), MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), DBA, API Platform, MediaWiki-libs-Rdbms

Fri, Jul 26

Seb35 updated the task description for T371000: TemplateData wizard is not loaded in some circumstances when the template name ends with a newline.
Fri, Jul 26, 3:06 PM · Patch-For-Review, VisualEditor, TemplateData
Seb35 added a comment to T371000: TemplateData wizard is not loaded in some circumstances when the template name ends with a newline.

I executed the test of ve.dm.MWTemplateModel.getTemplateDataQueryTitle() about whitespaces, changing the initial wt from ' SUBST: a' to ' SUBST: a\n' and it indeed fails:

14:00:04 FAILED TESTS:
14:00:04   ve.dm.MWTemplateModel
14:00:04     ✖ getTemplateDataQueryTitle: ignores capitalization and whitespace
14:00:04       Firefox 115.0 (Linux x86_64)
14:00:04     Expected: "Template:A"
14:00:04     Actual: "b"
14:00:04     @http://localhost:9876/load.php?modules=mediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CTable%2CUserInputWidget%2Cstyles%2CvisibleLengthLimit%7Cmediawiki.widgets.DateInputWidget.styles%7Cmobile.codex.styles%7Cmobile.init.styles%7Cmobile.pagelist.styles%7Cmobile.pagesummary.styles%7Cmobile.startup%7Cmoment%2Coojs%2Coojs-ui%2Coojs-ui-core%2Coojs-ui-toolbars%2Coojs-ui-widgets%2Coojs-ui-windows%2Cpapaparse%2Crangefix%2Csinonjs%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui-toolbars.icons%7Coojs-ui-widgets.icons%7Coojs-ui-windows.icons%7Coojs-ui.styles.icons-accessibility%2Cicons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-citation%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-interactions%2Cicons-layout%2Cicons-location%2Cicons-media%2Cicons-moderation%2Cicons-movement%2Cicons-user%2Cindicators%7Cskins.minerva.messageBox.styles%7Cskins.vector.clientPreferences%7Csocket.io%7Ctest.CentralAuth%2CCheckUser%2CCite%2CDiscussionTools%2CEcho%2CEventLogging%2CFlow%2CGlobalBlocking%2CGuidedTour%2CMediaWiki%2CMinervaNeue%2CSecurePoll%2CTemplateData%2CThanks%2CVector%2CVisualEditor%2CWikiEditor%2CWikimediaEvents&version=k0myz:5911:579
14:00:04     runTest@node_modules/qunit/qunit/qunit.js:2697:35
14:00:04     run@node_modules/qunit/qunit/qunit.js:2680:16
14:00:04     queue/runTest/<@node_modules/qunit/qunit/qunit.js:2951:16
14:00:04     processTaskQueue@node_modules/qunit/qunit/qunit.js:2271:26
14:00:04     processTaskQueue/<@node_modules/qunit/qunit/qunit.js:2275:29

(console of the failing test)

Fri, Jul 26, 2:31 PM · Patch-For-Review, VisualEditor, TemplateData

Thu, Jul 25

Seb35 created T371000: TemplateData wizard is not loaded in some circumstances when the template name ends with a newline.
Thu, Jul 25, 9:57 AM · Patch-For-Review, VisualEditor, TemplateData

Jul 11 2024

Seb35 added a comment to T348426: Upgrade DicoAdo.org from 1.35.11 to 1.39.5 (LTS).

A small follow-up:

Jul 11 2024, 10:05 AM · WMCH-Infrastructure, DicoAdo.org

Jun 27 2024

Seb35 lowered the priority of T24774: Should be possible to customize the search profiles. from Medium to Low.

This is already possible with the hook SpecialSearchProfiles instead of a config parameter or a MediaWiki:Sidebar-like alternative, so it should be clearer here what is really wanted (I’m aware the original author probably does not follow this task, so the question is to people interested to this task).

Jun 27 2024, 9:40 AM · Discovery-Search, Discovery-ARCHIVED, MediaWiki-Search

Jun 26 2024

Seb35 closed T30660: SpecialSearchProfiles hooks is not documented well enough as Resolved.

Fixed in https://www.mediawiki.org/wiki/Special:PermanentLink/6603711

Jun 26 2024, 6:54 AM · Documentation, MediaWiki-Search

Jun 25 2024

Seb35 added a comment to T226896: Allow setting a default tab to be shown on "Special:Search".

This is more or less the same as T40395, I suggest closing this one as a duplicate and continue the discussion on the other one which is older.

Jun 25 2024, 5:18 PM · MediaWiki-Search
Seb35 added a comment to T40395: It should be possible to choose the default search (tab/profile) on Special:Search.

There remains to be decided if the selection of the "default" profile is:

  1. the last selected profile (as proposed in my previous comment), or
  2. a profile the user has explicitely fixed in their preferences, whatever they will then navigate between different profiles during their searches.
Jun 25 2024, 5:13 PM · MediaWiki-Search
Seb35 added a comment to T40395: It should be possible to choose the default search (tab/profile) on Special:Search.

We (Wiki Valley) were asked this feature and I just studied the (current, 1.41/1.43-alpha) behaviour. It is in fact partly already implemented but the logic is quite difficult to discover (ref: source code as of 1.43-alpha):

  • when a user has used the 'advanced' profile and saved some set of namespaces, then they are sticked with the 'advanced' profile and this set of namespaces, but
  • when the same user saves exactly the set of namespaces of some other profile (see below), then this other profile becomes the default displayed profile (i.e. when you enter a search in the search box, or an URL on the page Special:Search without any parameter "nsNNN" or "profile").
Jun 25 2024, 4:35 PM · MediaWiki-Search

Jun 15 2024

Seb35 triaged T227479: Mpdf extension / Mpdf library outdated and causing errors and warnings as Medium priority.
Jun 15 2024, 10:15 AM · Patch-For-Review, MediaWiki-extensions-Other
Seb35 triaged T367602: Internal links in PDF from extension Mpdf do not work as Medium priority.
Jun 15 2024, 10:14 AM · Patch-For-Review, MediaWiki-extensions-Other
Seb35 added a comment to T367602: Internal links in PDF from extension Mpdf do not work.

Internal links (i.e. from and to the document itself) are generated by MediaWiki as <span id="…"></span> (at least with the traditional parser), but the library mPDF still does not recognise the attributes id as destinations of links (see the issues #111 and #653), only with the legacy HTML <a name="…"></a>.

Jun 15 2024, 9:21 AM · Patch-For-Review, MediaWiki-extensions-Other

Jun 14 2024

Seb35 created T367602: Internal links in PDF from extension Mpdf do not work.
Jun 14 2024, 9:02 PM · Patch-For-Review, MediaWiki-extensions-Other

Jun 11 2024

Seb35 added a comment to T227479: Mpdf extension / Mpdf library outdated and causing errors and warnings.

The linked patch should work on PHP 5.6 → 8.1 according to the requirements of the library mPDF and I tested it on PHP 7.4. I will test it on PHP 8.1 in a few days.

Jun 11 2024, 2:21 PM · Patch-For-Review, MediaWiki-extensions-Other

Jun 8 2024

Seb35 added a comment to T258537: Fix gitinfo.json issues in extdist.

I added a reconstruction script I wrote some time ago to recreate the complete Git repo from the file gitinfo.json (and version to retrieve the branch in the current state). It’s here: https://www.mediawiki.org/wiki/Gitinfo.json/Reconstruction_script

Jun 8 2024, 9:49 AM · Patch-For-Review, VPS-project-Extdist

Jun 6 2024

Seb35 added a comment to T366784: Create DNS record rm-vl.dicoado.org.

I moved the wiki to https://rm-vl.dicoado.org, changed the config in the farm with the key 'rm-vl' instead of 'rm' (I just did not rename the database, which is still dicoado_rm, it could be done later), and issued an SSL certificate with rm-vl.dicoado.org + www.rm-vl.dicoado.org.

Jun 6 2024, 2:09 PM · DicoAdo.org, WMCH-Infrastructure

Apr 5 2024

Seb35 added a comment to T360631: Singleton was called with no singleton theme set.

I completed the stacktrace in the description (log_errors_max_len has to be set to a larger value than 1024, like 2048).

Apr 5 2024, 10:35 AM · MW-1.43-notes (1.43.0-wmf.13; 2024-07-09), Patch-For-Review, VisualEditor
Seb35 updated the task description for T360631: Singleton was called with no singleton theme set.
Apr 5 2024, 9:45 AM · MW-1.43-notes (1.43.0-wmf.13; 2024-07-09), Patch-For-Review, VisualEditor

Apr 4 2024

Seb35 awarded T361379: generateSitemap: Uninitialized string offset 0 a Like token.
Apr 4 2024, 3:15 PM · MW-1.41-notes, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), MediaWiki-Platform-Team, MW-1.41-release, MediaWiki-Maintenance-system

Apr 2 2024

Seb35 added a comment to T360631: Singleton was called with no singleton theme set.

I also observe this exception on MW 1.41.1 with VE REL1_41 on PHP 7.4. I wonder how crawlers find these links, they are not displayed by MediaWiki in the history page, so either they appear somewhere I’m not aware, either they are constructed by MediaWiki-optimised crawlers to crawl the histories.

Apr 2 2024, 11:28 PM · MW-1.43-notes (1.43.0-wmf.13; 2024-07-09), Patch-For-Review, VisualEditor

Mar 24 2024

Seb35 added a comment to T360857: For pre-2005 users the API userinfo says the registration is the current day.

The relevant code in includes/api/ApiQueryUserInfo.php function getCurrentUserInfo is:

if ( isset( $this->prop['registrationdate'] ) ) {
        $regDate = $user->getRegistration();
        if ( $regDate !== false ) {
                $vals['registrationdate'] = wfTimestamp( TS_ISO_8601, $regDate );
        }
}

How it returns the current day:

  1. User::getRegistration() returns string|false|null (string = timestamp, false = anonymous user, null = logged-in user but no data),
  2. Here $regDate = null,
  3. so the condition $regDate !== false is true (because null !== false),
  4. and finally wfTimestamp( TS_ISO_8601, null ) returns the current date.
Mar 24 2024, 4:57 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), MediaWiki-Action-API
Seb35 triaged T360857: For pre-2005 users the API userinfo says the registration is the current day as Low priority.
Mar 24 2024, 4:48 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), MediaWiki-Action-API
Seb35 created T360857: For pre-2005 users the API userinfo says the registration is the current day.
Mar 24 2024, 4:48 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), MediaWiki-Action-API

Feb 15 2024

Seb35 added a comment to T357686: Uninitialised Parser::mOutput triggers an error.

As of now, $parser->getOutput() cannot be used with a fresh Parser because Parser::$mOutput is uninitialised.

Feb 15 2024, 4:51 PM · MediaWiki-extensions-Lingo, MediaWiki-Parser
Seb35 added a comment to T348223: LinkedWiki not compatible with wmf/1.41.0-wmf.29.

I observed this exact error with the extension Lingo, but it comes from a change introduced in MW 1.41.0, see T357686.

Feb 15 2024, 4:42 PM · NFDI-Germany, MediaWiki-extensions-LinkedWiki
Seb35 added a comment to T357686: Uninitialised Parser::mOutput triggers an error.

See also this small experiment with PHP 7.4.33:

$ php -a
Interactive mode enabled
Feb 15 2024, 4:29 PM · MediaWiki-extensions-Lingo, MediaWiki-Parser
Seb35 created T357686: Uninitialised Parser::mOutput triggers an error.
Feb 15 2024, 4:25 PM · MediaWiki-extensions-Lingo, MediaWiki-Parser
Seb35 added a comment to T335825: "LogicException: This ParserOutput contains no text!" while moving a page.

I’m quite sure this was fixed in 173efe9 (on 2023-05-09) and backported to REL1_35 (56c67a6), REL1_39 (0bd987c), and REL1_40 (35e4521). Do you confirm it works by using the lastest commit of branch REL1_39 (works also with the ExtensionDistributor)?

Feb 15 2024, 3:46 PM · MediaWiki-extensions-Lingo

Feb 14 2024

Seb35 added a comment to T350206: Add support for MWDebug and $wgDebugToolbar to MonologSpi.

This seems to be a duplicate of T114532, and there is Gerrit patch waiting for review :)

Feb 14 2024, 7:41 PM · Developer Productivity, MediaWiki-Debug-Logger

Jan 11 2024

Seb35 added a comment to T352682: Request for +2 on the extension DeletePagesForGood.

Thanks!

Jan 11 2024, 11:26 AM · Gerrit-Privilege-Requests

Dec 22 2023

Seb35 added a comment to T348426: Upgrade DicoAdo.org from 1.35.11 to 1.39.5 (LTS).

Here are the actions done on the skin, most are similar to those on previous 1.35 and adapted:

  • the skin foreground is now based on REL1_39 and specifically here f485d29, the diff is available with the command git diff when inside skins/foreground (NB: previously the skin foreground was hosted on GitHub, it is now hosted on Gerrit alongside most of other skins)
  • assets/scripts/foreground.js is replaced with the same file as in 1.35
  • assets/stylesheets/font-awesome.css is replaced with the same file as in 1.35 (FontAwesome Pro 5.15.1)
  • assets/stylesheets/foreground.css: removed rules about "#echo-notifications" (replaced by rules in MediaWiki:Foreground.css to be imported in production)
  • skin.json: removed "assets/stylesheets/fontawesome.css" (it is achieved with the modified script foreground.js)
  • Foreground.skin.php: diff below, the changes are:
    • moved the search bar from #top-bar-right to #top-bar-left
    • moved the Echo notifications and changed from div to ul-li
    • added the script Masonry
Dec 22 2023, 4:21 PM · WMCH-Infrastructure, DicoAdo.org

Dec 19 2023

Seb35 added a comment to T293109: Firefox: Referrer Policy: Less restricted policies, including ‘no-referrer-when-downgrade’, ‘origin-when-cross-origin’ and ‘unsafe-url’, will be ignored soon for the cross-site request.

Firefox enforces strict-origin-when-cross-origin since Firefox 93 (released in October 2021) when Tracking Protection is enabled. The user can disable it per-site (click on the shield in the address bar) and in this case these logs disappear in the console.

Dec 19 2023, 8:41 PM · Traffic, Browser-Support-Firefox
Seb35 added a comment to T257703: Clean up Cache-Control handling in MediaWiki.

More broadly, we may need to revisit the practice of eagerly setting up the session itself in Setup.php as well, since that itself may set cookies even if nothing attempts to interact with the session user during the lifetime of the request.

Dec 19 2023, 8:08 PM · MediaWiki-extensions-CentralNotice, Sustainability (Incident Followup), FR-CentralNotice-Caching, MediaWiki-Core-AuthManager
Seb35 added a comment to T285210: High frequency warning logged in production: Cookies set on {url} with Cache-Control "{cache-control}".

These two mechanisms are contradictory in the general case:

  1. on each new request where there is no cookie "_session" (always subdomain-local) but there is a cookie "Token" (might be domain-global), always define the session cookies;
  2. define cachable responses.
Dec 19 2023, 2:12 PM · MW-1.41-notes (1.41.0-wmf.10; 2023-05-23), Sustainability (Incident Followup), Fundraising-Backlog, Platform Team Workboards (Clinic Duty Team), MediaWiki-extensions-CentralNotice
Seb35 added a comment to T285210: High frequency warning logged in production: Cookies set on {url} with Cache-Control "{cache-control}".
In description, @daniel wrote:

It is unclear why session cookies are set here.

Dec 19 2023, 1:48 PM · MW-1.41-notes (1.41.0-wmf.10; 2023-05-23), Sustainability (Incident Followup), Fundraising-Backlog, Platform Team Workboards (Clinic Duty Team), MediaWiki-extensions-CentralNotice

Dec 8 2023

Seb35 added a comment to T348426: Upgrade DicoAdo.org from 1.35.11 to 1.39.5 (LTS).

I fixed 5 more issues today:

Dec 8 2023, 7:05 PM · WMCH-Infrastructure, DicoAdo.org

Dec 5 2023

Seb35 updated subscribers of T348426: Upgrade DicoAdo.org from 1.35.11 to 1.39.5 (LTS).

We worked today with @Nicolas_NALLET to fix various issues:

  • we silenced the warning Deprecated InternalParseBeforeSanitize hook on top of every page due to the extension Variables, there is a pending patch T250963 (silenced in [mediawiki]/includes/HookContainer/DeprecatedHooks.php
  • we disabled in the LocalSettings.php $wgUseFileCache = true; which triggered an error on the main page Fatal exception of type "Error" : this cache mechanism has very few users and is probably not really maintained: TODO it would be better to replace it by an external cache from Apache (NB: Wikimedia uses the software Varnish for this task, but it adds another software to be maintained, so perhaps not the better option here)
  • we updated the extension Cargo to its latest version in the branch REL1_39 (it triggered an errro on Special:Drilldown/Article): the few added commits fixes the issue
Dec 5 2023, 11:02 AM · WMCH-Infrastructure, DicoAdo.org

Dec 4 2023

Seb35 created T352682: Request for +2 on the extension DeletePagesForGood.
Dec 4 2023, 3:36 PM · Gerrit-Privilege-Requests
Seb35 closed T211757: Exception when the page contains some categories, a subtask of T231752: Use ordinary deletion prior to doing further cleanup, as Resolved.
Dec 4 2023, 3:07 PM · Patch-For-Review, MediaWiki-extensions-DeletePagesForGood
Seb35 closed T211757: Exception when the page contains some categories as Resolved.
Dec 4 2023, 3:06 PM · MediaWiki-extensions-DeletePagesForGood

Nov 9 2023

Seb35 added a comment to T229992: Locally created fallback should take precedent over config fallback.

I added T349115 as a subtask since it is a (minor) bug introduced in rMWbfd4001c6c229657091d866ae51e2cbb5979344a. I proposed a patch.

Nov 9 2023, 4:57 PM · MW-1.40-notes, MW-1.39-notes, User-notice, MW-1.41-notes (1.41.0-wmf.15; 2023-06-27), I18n, MediaWiki-Internationalization, Chinese-Sites
Seb35 added a subtask for T229992: Locally created fallback should take precedent over config fallback: T349115: PHP Notice: Undefined offset: 1 in LocalisationCache.php on line 579.
Nov 9 2023, 4:54 PM · MW-1.40-notes, MW-1.39-notes, User-notice, MW-1.41-notes (1.41.0-wmf.15; 2023-06-27), I18n, MediaWiki-Internationalization, Chinese-Sites
Seb35 added a parent task for T349115: PHP Notice: Undefined offset: 1 in LocalisationCache.php on line 579: T229992: Locally created fallback should take precedent over config fallback.
Nov 9 2023, 4:53 PM · MW-1.40-notes, MW-1.41-notes, MW-1.39-notes, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MW-1.39-release, MediaWiki-Internationalization
Seb35 added a comment to T349115: PHP Notice: Undefined offset: 1 in LocalisationCache.php on line 579.

I also observe this error on 1.40.1. I’m not completely sure, but it seems to appear when the (default?) skin in not Vector ($wgDefaultSkin = 'chameleon'; in my case), I had these notices for only 3 message keys vector-view-(view|edit|history) whose the value is NULL in the $preload array.

Nov 9 2023, 4:10 PM · MW-1.40-notes, MW-1.41-notes, MW-1.39-notes, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MW-1.39-release, MediaWiki-Internationalization

Oct 28 2023

Seb35 updated the task description for T208477: Move "privileged account' concept into MediaWiki core.
Oct 28 2023, 3:14 PM · MediaWiki-Platform-Team, MW-1.41-notes (1.41.0-wmf.26; 2023-09-12), MW-1.40-notes, MW-1.39-notes, Security, Security-Team, Patch-For-Review, MediaWiki-Debug-Logger, MediaWiki-Core-AuthManager

Oct 22 2023

Seb35 added a comment to T345319: TypeError: Argument 1 passed to HtmlFormatter\HtmlFormatter::onHtmlReady() must be of the type string, null given, called in /srv/mediawiki/php-1.41.0-wmf.24/vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 314.

I propose my patch, it fixes this issue as well as a similar one for long comments (the second preg_replace). I added 2 units tests inspired from matmarex’s comment above (T345319#9140869), these unit tests did not pass without this fix (triggering type errors) and pass with this fix.

Oct 22 2023, 7:01 PM · HtmlFormatter, MediaWiki-Parser, Discovery-Search, CirrusSearch, Wikimedia-production-error

Oct 21 2023

Seb35 added a comment to T345319: TypeError: Argument 1 passed to HtmlFormatter\HtmlFormatter::onHtmlReady() must be of the type string, null given, called in /srv/mediawiki/php-1.41.0-wmf.24/vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 314.

I observed this issue on 1.39.5. Given the simple regex, I replaced it by strpos+substr:

@@ -313 +313,10 @@ class HtmlFormatter {
-               $html = \preg_replace( '/^.*?<body>|<\/body>.*$/s', '', $html );
+               $pos = strpos( $html, '<body>' );
+               if ( $pos !== false ) {
+                       $html = substr( $html, $pos+6 );
+               }
+               $pos = strpos( $html, '</body>' );
+               if ( $pos !== false ) {
+                       $html = substr( $html, 0, $pos );
+               }
Oct 21 2023, 4:43 PM · HtmlFormatter, MediaWiki-Parser, Discovery-Search, CirrusSearch, Wikimedia-production-error

Oct 18 2023

Seb35 added a comment to T150526: BotPasswords: grant all rights.

I’m not sure why this task has the priority High, it seems there is no work done at least since 3-4 years, is there?

Oct 18 2023, 3:26 PM · Security, MediaWiki-Core-AuthManager
Seb35 added a comment to T150526: BotPasswords: grant all rights.

An alternative solution to fix the original issue would be a last grant "Misc. rights" containing all rights which are not attributed to a grant, so that we keep the spirit "only add necessary rights for a given task" as Tgr said above (T150526#2818602) and if some extension has not attributed its rights to a grant (as in subtasks of T142308) there is a transitional solution for users.

Oct 18 2023, 3:23 PM · Security, MediaWiki-Core-AuthManager

Sep 27 2023

Seb35 added a comment to T257477: Preview fails when $wgRawHtml is activated.

For the record, I found the solution and it is unrelated to PageForms.

Sep 27 2023, 8:35 AM · MediaWiki-extensions-Page_Forms

Sep 26 2023

Seb35 awarded T47514: ResourceLoader: Implement support for Source Maps a Love token.
Sep 26 2023, 6:05 PM · User-notice-archive, Patch-For-Review, MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), MediaWiki-Platform-Team, Front-end-Standards-Group, MediaWiki-ResourceLoader
Seb35 removed a project from T99223: GENDER support for 'editinguser': Patch-For-Review.
Sep 26 2023, 10:10 AM · Gender-Support, MediaWiki-Internationalization
Seb35 added a member for Trusted-Contributors: Ypermat.
Sep 26 2023, 9:26 AM
Seb35 added a member for Trusted-Contributors: Nicolas_NALLET.
Sep 26 2023, 9:16 AM
Seb35 added a comment to T41676: Links in MediaWiki emails should respect the user's https preference.

There is still a 'prefershttps' in MediaWiki, but it is hidden when $wgForceHTTPS is true since rMWc75eef91bf27046ca (T256095).

Sep 26 2023, 8:41 AM · MediaWiki-Email

Sep 19 2023

Seb35 closed T220884: Update the DeletePagesForGood extension for MCR as Resolved.

Fixed by the patch 958530 of @BPirkle and myself.

Sep 19 2023, 3:46 PM · MediaWiki-extensions-DeletePagesForGood

Aug 29 2023

Seb35 updated subscribers of T324646: 1.39 upgrade: Modifying tl_namespace field of table templatelinks: Error 1091: Can't DROP INDEX `PRIMARY`.

I have no good idea how to fix this from the updater side. As this state is unexpected (from my point of view) and possible the cause of some previous upgrade error, not sure if the updater should be smart enough to handle the case.

Aug 29 2023, 3:22 PM · MediaWiki-Installer, MW-1.39-release

Jul 21 2023

Seb35 updated subscribers of T291725: AbuseFilter causes Error 1091: Can't DROP INDEX `afl_filter_timestamp`; check that it exists.

During the update 1.31 → 1.35 → 1.39 of Vikidia, this issue was triggered, either in the original form Can't DROP 'filter_timestamp_full' with some upgrade path either in the form Duplicate key name 'afl_filter_timestamp_full' in another upgrade path (this second one because afl_filter_timestamp_full is created just before by patch-split-afl_filter.sql when there is no column abuse_filter_log.afl_filter_id in 1.39 updater).

Jul 21 2023, 9:37 AM · MW-1.38-notes (1.38.0-wmf.6; 2021-10-26), affects-translatewiki.net, AbuseFilter

May 15 2023

Seb35 added a comment to T53110: Provide a way to exclude certain links to disambiguation pages from [[Special:DisambiguationPageLinks]].

As said above, this task makes [[Special:DisambiguationPageLinks]] useless on most wikis given there are legitimate links to disambiguations pages, often in header templates.

May 15 2023, 4:28 PM · MediaWiki-extensions-Disambiguator

May 3 2023

Seb35 added a comment to T213083: NumerAlpha extension: PHP Notice: Undefined index: full level prefix in NumerAlpha.class.php on line 266.

Imvuong provided a solution in the linked topic on MediaWiki.org, and I aggree with them: when full level prefix is not defined, it should be defined to the empty string, which is the default value in the powerful parser function {{counter:}}.

May 3 2023, 3:12 PM · MediaWiki-extensions-Other

Apr 17 2023

Seb35 added a comment to T203256: OATH (2FA) needs an option to remember device but not keep user logged in.

There may be situations where the user connects in a semi-trusted device and don’t want to let some secondary authentication token, e.g. when s/he uses a public library computer or a colleague’s computer. For instance it happened to me recently during a editathon where I had to use a public library computer (the WiFi was too secure and not available to visitors). Of course, a private browsing is preferable in this situation, when available.

Apr 17 2023, 3:15 PM · MediaWiki-extensions-OATHAuth

Apr 6 2023

Seb35 added a comment to T327584: Exception when the title is malformed.

This bug is fixed from version 1.40 (branch REL1_40).

Apr 6 2023, 7:04 PM · MediaWiki-extensions-Title-Icon

Feb 27 2023

Seb35 closed T273687: ProtectSite may grant rights to users they do not otherwise have as Resolved.

This is now fixed in branch master, so it will in branches REL1_40 and further, and in versions 0.5.4+.

Feb 27 2023, 10:53 AM · MediaWiki-extensions-ProtectSite, Uncyclomedia, ShoutWiki
Seb35 updated the task description for T330623: On-page debug log is empty.
Feb 27 2023, 8:44 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Debug-Logger
Seb35 updated the task description for T330623: On-page debug log is empty.
Feb 27 2023, 8:42 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Debug-Logger
Seb35 renamed T330623: On-page debug log is empty from On-page debug log is emtpy to On-page debug log is empty.
Feb 27 2023, 8:41 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Debug-Logger
Seb35 added a comment to T330623: On-page debug log is empty.

This bug is with the default LegacySpi, there is also T114532 with MonologSpi.

Feb 27 2023, 8:24 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Debug-Logger
Seb35 created T330623: On-page debug log is empty.
Feb 27 2023, 8:22 AM · MW-1.42-notes (1.42.0-wmf.19; 2024-02-20), MediaWiki-Debug-Logger

Feb 26 2023

Seb35 added a comment to T168783: A failed CAPTCHA during account creation doesn't block the account request.

Fixed in branch REL1_39+ (version 1.39+). I updated MW.org.

Feb 26 2023, 1:09 PM · MediaWiki-extensions-ConfirmAccount

Feb 14 2023

Seb35 updated the task description for T10819: Full Path Disclosure vulnerability in MediaWiki 1.9.1.
Feb 14 2023, 6:14 PM · MediaWiki-Templates
Seb35 added a comment to T10819: Full Path Disclosure vulnerability in MediaWiki 1.9.1.

For reference this was fixed in Git commit 90759fa8a1a5187d881763ea89f9ca2f0a5f8a4a.

Feb 14 2023, 10:53 AM · MediaWiki-Templates

Jan 21 2023

Seb35 added a comment to T312589: Graph is storing a stdClass not a JsonDeserializable.

I remarked there are two unserializations in IconManager, and removing the internal unserialization seems to fix the failing tests.

Jan 21 2023, 11:32 PM · Patch-Needs-Improvement, MW-1.40-notes (1.40.0-wmf.21; 2023-01-30), MediaWiki-extensions-Graph, MediaWiki-Parser, Wikimedia-production-error
Seb35 added a comment to T312589: Graph is storing a stdClass not a JsonDeserializable.

The extension TitleIcon has a wrong unserialization since 96e4f5d8402 (more exactly the class MediaWiki\Extension\TitleIcon\Icon): see for instance the patch I am preparing, but the failing tests are independent of the patch and fail exactly when MediaWiki has 96e4f5d8402.

Jan 21 2023, 10:56 PM · Patch-Needs-Improvement, MW-1.40-notes (1.40.0-wmf.21; 2023-01-30), MediaWiki-extensions-Graph, MediaWiki-Parser, Wikimedia-production-error
Seb35 triaged T327584: Exception when the title is malformed as Low priority.
Jan 21 2023, 7:41 PM · MediaWiki-extensions-Title-Icon
Seb35 added a comment to T327584: Exception when the title is malformed.

And here is the corresponding patch

Jan 21 2023, 7:31 PM · MediaWiki-extensions-Title-Icon
Seb35 created T327584: Exception when the title is malformed.
Jan 21 2023, 7:30 PM · MediaWiki-extensions-Title-Icon

Jan 17 2023

Seb35 added a comment to T168783: A failed CAPTCHA during account creation doesn't block the account request.

@Seb35 Will it be possible to back-port this to MW 1.39 since this the the LTS branch? Will be cool I believe.

Jan 17 2023, 3:22 PM · MediaWiki-extensions-ConfirmAccount

Jan 10 2023

Seb35 added a comment to T311449: ConfirmEdit - HCaptcha no longer working with Visual Editor in 1.38.1.

[e2b82f9bd017f414a556d7a9] /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=chameleon TypeError: Argument 1 passed to MediaWiki\Extension\ConfirmEdit\hCaptcha\Hooks\ResourceLoaderHooks::getHCaptchaResourceLoaderConfig() must be an instance of MediaWiki\ResourceLoader\Context, instance of ResourceLoaderContext given, called in ----/includes/resourceloader/ResourceLoaderFileModule.php on line 1312

Jan 10 2023, 8:40 PM · MW-1.40-notes (1.40.0-wmf.17; 2023-01-02), ConfirmEdit (CAPTCHA extension)

Nov 28 2022

Seb35 added a comment to T311167: Hit Count reported in Popular Pages is incorrect.

This is caused by rEHTC6827d8cdd7420074c50d38a8724c72fac5feac32: the SQL query constructed by MediaWiki is SELECT … FROM page p,hit_counter h ORDER BY … instead of SELECT … FROM hit_counter h JOIN page p ON ((p.page_id = h.page_id)) ORDER BY … (I removed the backticks here for readability), so a cross product is computed by MySQL instead of a JOIN.

Nov 28 2022, 4:36 PM · MW-1.39-release, MW-1.38-release, MediaWiki-extensions-HitCounters

Oct 22 2022

Seb35 merged T202235: MediaWiki 1.31 : Error from line 4829 of /var/lib/mediawiki/languages/Language.php into T198325: Using $this when not in object context when uploading html file or archive in Html2Wiki 1.31.
Oct 22 2022, 2:33 PM · MediaWiki-extensions-Html2Wiki
Seb35 merged task T202235: MediaWiki 1.31 : Error from line 4829 of /var/lib/mediawiki/languages/Language.php into T198325: Using $this when not in object context when uploading html file or archive in Html2Wiki 1.31.
Oct 22 2022, 2:32 PM · MediaWiki-extensions-Html2Wiki

Oct 17 2022

Seb35 changed the subtype of T320980: Add parameters to control ActorCache from "Task" to "Feature Request".
Oct 17 2022, 3:20 PM · MediaWiki-User-management
Seb35 created T320980: Add parameters to control ActorCache.
Oct 17 2022, 3:18 PM · MediaWiki-User-management

Oct 12 2022

Seb35 closed T168783: A failed CAPTCHA during account creation doesn't block the account request as Resolved.

Fixed in current master, so it will be available in REL1_40+ (version 1.40+).

Oct 12 2022, 12:11 PM · MediaWiki-extensions-ConfirmAccount

Sep 25 2022

Seb35 added a comment to T258537: Fix gitinfo.json issues in extdist.

Example of file generated:

{
  "head": "refs/heads/REL1_39",
  "headSHA1": "9ddf52d2df69634f558d6a3c04d4daa0b06dc4ff",
  "headCommitDate": 1660112594,
  "branch": "REL1_39",
  "remoteURL": "https://gerrit.wikimedia.org/r/mediawiki/extensions/Dashiki"
}
Sep 25 2022, 5:59 PM · Patch-For-Review, VPS-project-Extdist
Seb35 added a comment to T258537: Fix gitinfo.json issues in extdist.

In the linked patch, I changed the following entries in gitinfo.json to make them correspond to the GitInfo class of MediaWiki:

  • branch: changed from the HEAD’s SHA1 to the branch name (e.g. "REL1_39")
  • head: changed from the HEAD’s SHA1 to the branch reference (e.g. "refs/heads/REL1_39")
  • headCommitDate: changed from a string to an int
  • headSHA1: removed the trailing \n
Sep 25 2022, 5:57 PM · Patch-For-Review, VPS-project-Extdist
Seb35 added a comment to T253586: extensions including semantic-forms via composer are broken and breaking extension distributor.

There are no more issue with the mentionned repo SemanticPageSeries (the renaming from semantic-forms to page-forms is finished), but if we want to fix it for an hypothetical other case, including when a repo will be deleted (it will probably happen one day), I have the following proposition:

Sep 25 2022, 5:38 PM · MediaWiki-extensions-SemanticSignup, MediaWiki-extensions-Page_Forms, VPS-project-Extdist
Seb35 removed a project from T253586: extensions including semantic-forms via composer are broken and breaking extension distributor: MediaWiki-extensions-MediaWikiFarm.

I remove the tag MediaWikiFarm since page-forms only appears in test/phpunit/, not the root composer.json.

Sep 25 2022, 3:17 PM · MediaWiki-extensions-SemanticSignup, MediaWiki-extensions-Page_Forms, VPS-project-Extdist

Sep 24 2022

Seb35 added a comment to T253461: Liberate the @ for AtEase.

I modified mw:at-ease to reflect this decision, even if the library is strictly-speaking independent of MediaWiki.

Sep 24 2022, 9:59 PM · MW-1.43-notes (1.43.0-wmf.5; 2024-05-14), Performance-Team, TechCom, MediaWiki-Codesniffer, Proposal, at-ease, MediaWiki-General
Seb35 added a comment to T273687: ProtectSite may grant rights to users they do not otherwise have.

I propose the linked patch, adding on each right a preliminary condition ( $wgGroupPermissions[$group][$right] ?? false ) && … to be sure no right can be added but only removed.

Sep 24 2022, 7:15 PM · MediaWiki-extensions-ProtectSite, Uncyclomedia, ShoutWiki

Sep 3 2022

Seb35 closed T313937: PageForms: Call to a member function canExist() on null as Resolved.
Sep 3 2022, 6:25 PM · MediaWiki-extensions-Page_Forms

Aug 31 2022

Seb35 reopened T313937: PageForms: Call to a member function canExist() on null as "Open".

I reopen this task given I reached this bug in another code path (MW 1.38.2, PF 5.4 and current master a308554b9). I propose a complementary patch below.

Aug 31 2022, 9:34 AM · MediaWiki-extensions-Page_Forms