Page MenuHomePhabricator

jrchamp (Jonathan Champ)
Engineering

Today

  • No visible events.

Tomorrow

  • No visible events.

Tuesday

  • No visible events.

User Details

User Since
Dec 17 2016, 3:41 AM (486 w, 1 d)
Availability
Available
LDAP User
Jrchamp
MediaWiki User
Unknown

Recent Activity

Sep 26 2025

jrchamp closed T314893: Bump composer/installers dependency to a version that supports Composer 2 as Resolved.

Patch applied to the branches that match MediaWiki's supported versions.

Sep 26 2025, 5:13 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp claimed T314893: Bump composer/installers dependency to a version that supports Composer 2.
Sep 26 2025, 3:56 PM · MediaWiki-extensions-Auth_remoteuser

Sep 19 2025

jrchamp closed T383786: AuthRemoteuserFilterUserName hook not working in 1.43 as Resolved.
Sep 19 2025, 5:07 PM · MediaWiki-extensions-Auth_remoteuser

Sep 18 2025

jrchamp closed T369974: Auth_remoteuser: Allowed memory size exhausted as Resolved.

@Osnard @Metaldaze80 Thank you both for your development and testing on this issue. I believe all of the permission checks are happening in ways that do not produce an infinite loop now.

Sep 18 2025, 9:43 PM · MediaWiki-extensions-Auth_remoteuser

Sep 15 2025

jrchamp added a comment to T369974: Auth_remoteuser: Allowed memory size exhausted.

FYI: I have created https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Auth_remoteuser/+/1188293 as an proposal. Have set it to WIP, as I didn't have time to test it yet. Open for discussion.

Sep 15 2025, 4:02 PM · MediaWiki-extensions-Auth_remoteuser

Sep 14 2025

jrchamp reopened T369974: Auth_remoteuser: Allowed memory size exhausted as "Open".

Sorry about that! That check should also be moved like the other one.

Sep 14 2025, 9:06 PM · MediaWiki-extensions-Auth_remoteuser

Sep 12 2025

jrchamp changed the status of T314893: Bump composer/installers dependency to a version that supports Composer 2 from Stalled to Open.

The composer.json best practices manual encourages us to allow other, newer versions of composer/installers to avoid conflicts.

Sep 12 2025, 6:08 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp closed T364338: Use of PersonalUrls hook was deprecated in MediaWiki 1.39 as Resolved.
Sep 12 2025, 5:32 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp closed T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x as Resolved.

Thank you for fixing this issue! Backported to the REL1_42 branch and merged manually.

Sep 12 2025, 2:47 PM · MediaWiki-extensions-Auth_remoteuser

Sep 10 2025

jrchamp closed T369974: Auth_remoteuser: Allowed memory size exhausted as Resolved.

Thank you @Osnard for the fix and everyone else who discussed the issue. The fix has been merged and should be available now in the 1.43, 1.44 and master branches.

Sep 10 2025, 5:58 PM · MediaWiki-extensions-Auth_remoteuser

Sep 8 2025

jrchamp updated subscribers of T399200: Update existing cookie-based sessions to include JWT cookie.

It looks like the changes to the constructor cause problems for plugins like Auth_remoteuser. Is there a migration guide on how we're supposed to correctly implement these changes? Or would you be willing to help @thiemowmde fix https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Auth_remoteuser/+/1185481 ?

Sep 8 2025, 9:48 PM · MW-1.45-notes (1.45.0-wmf.20; 2025-09-23), MediaWiki-Platform-Team, Epic, FY2025-26 KR 5.1, OKR-Work

Aug 27 2025

jrchamp added a comment to T402649: Special:UserLogin breaks, when no "remoteUser" is set.

Thanks @Osnard! If someone is logging in using Auth_remoteuser, does the fix still allow them to successfully log in? Or does it essentially turn off the Auth_remoteuser SessionProvider?

Aug 27 2025, 2:51 PM · Patch-For-Review, MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T369974: Auth_remoteuser: Allowed memory size exhausted.

@Osnard @Metaldaze80 I have updated https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Auth_remoteuser/+/1181135 to try and complete the patch. If the infinite loop is resolved and turning the createaccount setting on/off has an effect, then I think this is an overall improvement over the current version. Thank you for your efforts!

Aug 27 2025, 2:39 PM · MediaWiki-extensions-Auth_remoteuser

Aug 4 2025

jrchamp added a comment to T369974: Auth_remoteuser: Allowed memory size exhausted.

@JeredF It's definitely the experience piece that's the limiting factor. Between true and false, the temporary workaround would be to "show the link even if people can't use the link". I'm living in a figurative construction zone right now, so if someone can open a change in the software system, I can review and approve it.

Aug 4 2025, 5:23 PM · MediaWiki-extensions-Auth_remoteuser

Nov 26 2024

jrchamp added a comment to T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x.

I think those changes are a perfect workaround. The purpose of the checks is to answer the question: "Does the current user (anonymous or not) have permission to create an account?" Manually setting those to true or false efficiently skips the part where the software would check the configuration settings. So if the answer to those access questions was always going to be true or false, then you're saving time.

Nov 26 2024, 10:44 PM · MediaWiki-extensions-Auth_remoteuser

Sep 17 2024

jrchamp added a comment to T369974: Auth_remoteuser: Allowed memory size exhausted.

Here's a much safer temporary workaround: Replace !$user->isAllowed( 'createaccount' ) with true or false within the refreshSessionInfo() method in UserNameSessionProvider.php. true would mean "Users are not allowed to create accounts".

Sep 17 2024, 10:15 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x.

Yes, If that code is at the top of the method, then the function will only run once. I don't know what effect that will have in general.

Sep 17 2024, 10:11 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x.

Copied from T369974

Sep 17 2024, 7:40 PM · MediaWiki-extensions-Auth_remoteuser

Aug 31 2024

jrchamp added a comment to T345683: Review of MediaWiki block-related code.

I think Change 966657 from this tracker item may have caused a regression that creates an infinite loop when a SessionProvider calls User->isAllowed in the refreshSessionInfo method. I'm not sure what the correct answer is here, so I'm hoping someone here might know.

Aug 31 2024, 8:59 AM · MW-1.42-notes (1.42.0-wmf.4; 2023-11-07), MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), MediaWiki-Blocks, Community-Tech (CommTech-Kanban)
jrchamp added a comment to T369974: Auth_remoteuser: Allowed memory size exhausted.

Regression was caused by dfc691bfc52 "Migrate callers of deprecated method BlockManager::getUserBlock()" (T345683). In includes/Permissions/PermissionManager.php, the user rights cache was modified. My guess is that the caching stopped working and now the user rights checks run multiple times when a permission check is done within a SessionProvider.

Aug 31 2024, 8:32 AM · MediaWiki-extensions-Auth_remoteuser

Aug 6 2024

jrchamp added a comment to T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x.

Thank you @ChristianHeusel! If the maximum time is happening in significantly different places each time, then it probably means that there is an unexpected infinite loop between core code and the extension code. This makes sense for it to be in the registered hook. The hook itself is probably calling core code that - in turn - calls the hook again.

Aug 6 2024, 3:58 PM · MediaWiki-extensions-Auth_remoteuser

Jul 15 2024

jrchamp added a comment to T364338: Use of PersonalUrls hook was deprecated in MediaWiki 1.39.

Thank you! That's a very helpful link.

Jul 15 2024, 10:37 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp triaged T357029: RFE: Ability to assign users to groups as Low priority.

I like this idea. As far as implementation, I would expect that an anonymous function is configured that will receive the current set of roles and the user object. The anonymous function could then use the user object information to determine which roles the user should have, and return the new set of roles.

Jul 15 2024, 10:34 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp renamed T357029: RFE: Ability to assign users to groups from RFE: Ability to assing users to groups to RFE: Ability to assign users to groups.
Jul 15 2024, 10:06 PM · MediaWiki-extensions-Auth_remoteuser

Jul 12 2024

jrchamp changed the status of T314893: Bump composer/installers dependency to a version that supports Composer 2 from Open to Stalled.

No feedback from requester.

Jul 12 2024, 8:33 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp changed the status of T364338: Use of PersonalUrls hook was deprecated in MediaWiki 1.39 from Open to Stalled.
Jul 12 2024, 8:31 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T364338: Use of PersonalUrls hook was deprecated in MediaWiki 1.39.

Sorry @Opoplawski, this is indeed a concern if you have PHP Deprecated messages enabled. The issue was fixed in REL1_41. The fix can be backported/cherry-picked to REL1_39. I do not have my development environment configured for this currently, so maybe you could convince the fix author to open a Code Review for backporting the fix to REL1_39.

Jul 12 2024, 8:30 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T368904: Extension:Auth_remoteuser leads to timeouts when using mediawiki 1.42.x.

@ChristianHeusel Which version of Auth_remoteuser are you using? Did it get updated at the same time as Mediawiki itself so that the matching REL1_42 version is being used?

Jul 12 2024, 7:28 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp closed T363593: No logout button as Resolved.

Closing as resolved because the relevant configuration documentation was referenced.

Jul 12 2024, 7:23 PM · MediaWiki-extensions-Auth_remoteuser
jrchamp changed the status of T369887: Auth_remoteuser: Error: Class "Hooks" not found in UserNameSessionProvider.php from Open to In Progress.

@Kerb5wikE Does upgrading to the version of Auth_remoteuser that is designed for your version of Mediawiki resolve the issue?

Jul 12 2024, 7:20 PM · MediaWiki-extensions-Auth_remoteuser

May 7 2024

jrchamp added a comment to T363593: No logout button.

By default, the link to the Logout special page is removed, because it would not do anything useful. If you have a better location for the Logout action that would do something useful, please follow the documentation in the README.md for how to configure the Logout URL: https://phabricator.wikimedia.org/diffusion/EARU/browse/master/README.md$225

May 7 2024, 6:31 PM · MediaWiki-extensions-Auth_remoteuser

May 29 2023

jrchamp closed T333100: Auth_RemoteUser: Use of PersonalUrls hook was deprecated in MediaWiki 1.39. as Resolved.

Thanks @Umherirrender for addressing these issues in:

May 29 2023, 9:01 PM · MediaWiki-extensions-Auth_remoteuser

Apr 29 2023

jrchamp added a comment to T333100: Auth_RemoteUser: Use of PersonalUrls hook was deprecated in MediaWiki 1.39..

Is it correct that:

Apr 29 2023, 8:03 PM · MediaWiki-extensions-Auth_remoteuser

Aug 26 2022

jrchamp triaged T314893: Bump composer/installers dependency to a version that supports Composer 2 as High priority.

I don't think that the version was purposefully limited, so it makes sense to relax the restriction. It seems like the options to allow Composer 2.x would be ^1.0.1|^2 or >=1.0.1. As this plugin does not typically need regular changes, I think the open-ended version requirement would be best. We're not doing anything extremely complicated with our composer configuration, so it will likely be forward-compatible with the eventual Composer 3.

Aug 26 2022, 3:02 PM · MediaWiki-extensions-Auth_remoteuser

Nov 11 2019

jrchamp closed T237725: Auth_remoteuser extension causes TypeError when running maintenance tasks as Resolved.

Thank you @Claashk - this was just the push I needed to learn more about the gerrit workflow.

Nov 11 2019, 10:53 PM · MediaWiki-extensions-Auth_remoteuser

Nov 8 2019

jrchamp added a comment to T237725: Auth_remoteuser extension causes TypeError when running maintenance tasks.

That bug was fixed by in April 2019: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Auth_remoteuser/+/1436b981d6ff721cb7e0072cf32779d56ce03f45%5E%21/

Nov 8 2019, 7:02 PM · MediaWiki-extensions-Auth_remoteuser

Apr 12 2019

jrchamp added a comment to T220478: Metadata may be `null`.

The change has been merged. It's not letting me cherry-pick through gerrit (complains about a merge conflict). It seems like this fix would needed to be applied to REL1_32 also, right? Which release of Mediawiki added the array type check?

Apr 12 2019, 2:26 PM · MediaWiki-extensions-Auth_remoteuser

Jul 18 2018

jrchamp added a comment to T198928: First Save bug (2018).

That's great to hear! Thank you for testing the change.

Jul 18 2018, 6:24 PM · Patch-For-Review, User-Tgr, MediaWiki-extensions-Auth_remoteuser

Jul 12 2018

jrchamp added a comment to T198928: First Save bug (2018).

I'm not sure if this is the problem, but would you be willing to try moving the wfLoadExtension call to the end. In @Ninopul's example, this would look more like:

$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgAuthRemoteuserUserName = 'User005';
wfLoadExtension( 'Auth_remoteuser' );
Jul 12 2018, 7:05 PM · Patch-For-Review, User-Tgr, MediaWiki-extensions-Auth_remoteuser

Apr 7 2018

jrchamp added a comment to T188193: update namespace.

@Enst80 Now that those tasks are all closed, do you want to release another version?

Apr 7 2018, 2:26 AM · Patch-For-Review, MediaWiki-extensions-Auth_remoteuser

Mar 25 2018

jrchamp added a comment to T188195: array union operator `+=` does not work as intended.

@Enst80 Understood. I uploaded a new patch set to provide an example of how it might be simpler. I hope you like it!

Mar 25 2018, 8:25 PM · Patch-For-Review, MediaWiki-extensions-Auth_remoteuser

Feb 27 2018

jrchamp added a comment to T185391: Run hook `UserLoggedIn`.

Is this commit in Gerrit somewhere?

Feb 27 2018, 11:26 PM · Patch-For-Review, MediaWiki-extensions-Auth_remoteuser
jrchamp added a comment to T188195: array union operator `+=` does not work as intended.

Another option is to use the Special Page name as the array key and boolean true as the value. That would allow the use of the union operator without incurring duplicates. The foreach would need to be modified to match:

foreach ( $disableSpecialPages as $page => $disable )
Feb 27 2018, 11:17 PM · Patch-For-Review, MediaWiki-extensions-Auth_remoteuser

Jun 12 2017

jrchamp added a comment to T167615: Auth_remoteuser breaks google custom search.

Seems like a simple fix and it will address the specific issue. Nice find!

Jun 12 2017, 4:51 PM · MediaWiki-extensions-Auth_remoteuser

Apr 18 2017

jrchamp added a watcher for MediaWiki-extensions-Auth_remoteuser: jrchamp.
Apr 18 2017, 5:29 PM
jrchamp added a member for MediaWiki-extensions-Auth_remoteuser: jrchamp.
Apr 18 2017, 5:26 PM

Apr 16 2017

jrchamp added a comment to T110292: Update Auth_remoteuser to use AuthManager.

Hooray! Thank you both for making this milestone possible.

Apr 16 2017, 7:30 PM · Product-Infrastructure-Team-Backlog-Deprecated, MediaWiki-extensions-Auth_remoteuser, Patch-For-Review, MediaWiki-Core-AuthManager

Mar 7 2017

jrchamp assigned T110292: Update Auth_remoteuser to use AuthManager to Enst80.

Stefan has done an amazing job with this. If anyone knows how we can get this change merged, please respond. Thank you.

Mar 7 2017, 3:42 PM · Product-Infrastructure-Team-Backlog-Deprecated, MediaWiki-extensions-Auth_remoteuser, Patch-For-Review, MediaWiki-Core-AuthManager