Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

IP Masking Considerations: services/parsoid
Open, HighPublic

Description

IP Masking will affect lots of our products, features, tools, gadgets, etc. This task is for tracking work to update those that are owned by Content-Transform-Team, ahead of IP Masking being enabled on WMF sites.

See T326816: [Epic] Update features for temporary accounts, particularly What will be affected.

A preliminary investigation (T326759) has found that the following may be affected:

  • services/parsoid

Event Timeline

The usage in Parsoid, according to the list of problematic methods in T326759, is limited to a single line:

$ git grep IPUtils
src/Utils/Title.php:use Wikimedia\IPUtils;
src/Utils/Title.php:                    $title = IPUtils::sanitizeIP( $title );

This is in the implementation of Title::newFromText(), which is a more-or-less direction port from Title::newFromText in core (although it was first ported to JavaScript and then reverse ported back to PHP). We should be able to just copy the "fixed" implementation of Title::newFromText() from core and then resolve this task.

There's another usage in core's includes/parser/Parsoid:

$ git grep getName\( includes/parser/Parsoid
includes/parser/Parsoid/Config/PageConfig.php:          return $user ? $user->getName() : null;

This appears to be inside PageConfig::getRevisionUser() which is never actually called inside Parsoid (!).

cscott added a subscriber: ssastry.
MSantos triaged this task as High priority.Aug 15 2024, 2:09 PM
MSantos moved this task from Backlog to Current Deploy Target on the Content-Transform-Team-WIP board.