Page MenuHomePhabricator

MWException /RecentChange.php: Attempt to write "2a02:810d:1440:" as an IP address
Closed, DuplicatePublic


2015-08-16 13:59:17 translatewiki_net-bw_: [c2d6f10c] /w/api.php   MWException from line 886
          of /srv/mediawiki/tags/2015-08-15_20:04:03/includes/changes/RecentChange.php: Attempt to write "2a02:810d:1440:" as an IP address
          into recent changes

Event Timeline

Nemo_bis created this task.Aug 16 2015, 3:19 PM
Nemo_bis raised the priority of this task from to Normal.
Nemo_bis updated the task description. (Show Details)
Nemo_bis added a project: MediaWiki-API.
Nemo_bis added a subscriber: Nemo_bis.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 16 2015, 3:19 PM
Reedy added a subscriber: Reedy.Aug 16 2015, 3:23 PM

So MW doesn't think that IPv6 address is valid, which is correct

The question here really is why an invalid IP address is getting that far; what's giving that address? Or is it already saved in the DB prior to some validation that now exists?

It is a probably part of an an address of admin user using Special:ManageTranslatorSandbox page calling ApiTranslateSandbox. No idea why we would get truncated IP address in one of the log events created by that API.

I bet this is just a symptom of T117854.