Page MenuHomePhabricator

Fatal exception of type "InvalidArgumentException" when viewing some user contributions in the mobile version
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.38.0-wmf.2
  • reqId: 28beb5c2-b8c4-4c0d-9bb9-9b22d4bdee5d
normalized_message
Fatal exception of type "InvalidArgumentException"
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.1/includes/user/UserFactory.php(115)
#0 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/SpecialMobileContributions.php(73): MediaWiki\User\UserFactory->newAnonymous(string)
#1 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/MobileSpecialPage.php(75): SpecialMobileContributions->executeWhenAvailable(string)
#2 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/MobileSpecialPageFeed.php(30): MobileSpecialPage->execute(string)
#3 /srv/mediawiki/php-1.38.0-wmf.1/includes/specialpage/SpecialPage.php(647): MobileSpecialPageFeed->execute(string)
#4 /srv/mediawiki/php-1.38.0-wmf.1/includes/specialpage/SpecialPageFactory.php(1367): SpecialPage->run(string)
#5 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#6 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(925): MediaWiki->performRequest()
#7 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(559): MediaWiki->main()
#8 /srv/mediawiki/php-1.38.0-wmf.1/index.php(53): MediaWiki->run()
#9 /srv/mediawiki/php-1.38.0-wmf.1/index.php(46): wfIndexMain()
#10 /srv/mediawiki/w/index.php(3): require(string)
#11 {main}
Impact

N/A

Notes

This error occurs when viewing user contributions for any IP segment with the mobile version.

Screenshot

IMG_20210930_170811_036.jpg (728×1 px, 74 KB)

Details

MediaWiki Version
1.38.0-wmf.1
Request URL
https://en.m.wikipedia.org/wiki/Special:Contributions/101.99.60.0/19?uselang=en

Event Timeline

RhinosF1 changed Request URL from https://en.m.wikipedia[.]org/wiki/Special:Contributions/101.99.60.0/19?uselang=en to https://en.m.wikipedia.org/wiki/Special:Contributions/101.99.60.0/19?uselang=en.Sep 30 2021, 9:11 AM

I can't reporoduce on enwiki but get bad username on itwiki

At a glance this looks a lot like T291519, but that one was supposed to be fixed in wmf.2.

RhinosF1 changed Release Version from 1.38.0-wmf.2 to 1.38.0-wmf.1.Sep 30 2021, 9:19 AM

When I look up that reqId in Logstash, it’s in wmf.1, not wmf.2. I’ll paste the whole Phatality desc block:


Error
normalized_message
[{reqId}] {exception_url}   InvalidArgumentException: Invalid IP address
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.1/includes/user/UserFactory.php(115)
#0 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/SpecialMobileContributions.php(73): MediaWiki\User\UserFactory->newAnonymous(string)
#1 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/MobileSpecialPage.php(75): SpecialMobileContributions->executeWhenAvailable(string)
#2 /srv/mediawiki/php-1.38.0-wmf.1/extensions/MobileFrontend/includes/specials/MobileSpecialPageFeed.php(30): MobileSpecialPage->execute(string)
#3 /srv/mediawiki/php-1.38.0-wmf.1/includes/specialpage/SpecialPage.php(647): MobileSpecialPageFeed->execute(string)
#4 /srv/mediawiki/php-1.38.0-wmf.1/includes/specialpage/SpecialPageFactory.php(1367): SpecialPage->run(string)
#5 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#6 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(925): MediaWiki->performRequest()
#7 /srv/mediawiki/php-1.38.0-wmf.1/includes/MediaWiki.php(559): MediaWiki->main()
#8 /srv/mediawiki/php-1.38.0-wmf.1/index.php(53): MediaWiki->run()
#9 /srv/mediawiki/php-1.38.0-wmf.1/index.php(46): wfIndexMain()
#10 /srv/mediawiki/w/index.php(3): require(string)
#11 {main}
Impact
Notes

This comment was removed by Aklapper.
Peachey88 added projects: User-IN, Mobile.
Peachey88 added a subscriber: W013ccw.
Peachey88 removed subscribers: W013ccw, Elena88.

What the hell just happened?

@IN: Simple vandalism. (Please ask support questions in a support forum, not here.)