Page MenuHomePhabricator

PHP Notice: Undefined offset: 2
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined offset: 2
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.3/extensions/Collection/includes/Specials/SpecialCollection.php(635)
#0 /srv/mediawiki/php-1.38.0-wmf.3/extensions/Collection/includes/Specials/SpecialCollection.php(635): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.38.0-wmf.3/extensions/Collection/includes/Api/ApiRenameChapter.php(38): SpecialCollection::renameChapter(integer, string)
#2 /srv/mediawiki/php-1.38.0-wmf.3/includes/api/ApiMain.php(1877): MediaWiki\Extensions\Collection\Api\ApiRenameChapter->execute()
#3 /srv/mediawiki/php-1.38.0-wmf.3/includes/api/ApiMain.php(856): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.38.0-wmf.3/includes/api/ApiMain.php(827): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.38.0-wmf.3/api.php(90): ApiMain->execute()
#6 /srv/mediawiki/php-1.38.0-wmf.3/api.php(45): wfApiMain()
#7 /srv/mediawiki/w/api.php(3): require(string)
#8 {main}
Notes

There have been about 100 of these errors in the last hour. Looks like someone is trying to find a vulnerability. Anyway, some defensive coding is needed to avoid the Undefined offset notice.

Related Objects

StatusSubtypeAssignedTask
ResolvedReleasedancy
ResolvedPRODUCTION ERRORxSavitar

Event Timeline

dancy triaged this task as High priority.

Change 730563 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/extensions/Collection@master] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730563

Change 730563 merged by jenkins-bot:

[mediawiki/extensions/Collection@master] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730563

Change 730577 had a related patch set uploaded (by Zabe; author: Derick Alangi):

[mediawiki/extensions/Collection@wmf/1.38.0-wmf.4] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730577

Change 730578 had a related patch set uploaded (by Zabe; author: Derick Alangi):

[mediawiki/extensions/Collection@wmf/1.38.0-wmf.3] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730578

Change 730577 merged by jenkins-bot:

[mediawiki/extensions/Collection@wmf/1.38.0-wmf.4] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730577

Mentioned in SAL (#wikimedia-operations) [2021-10-13T21:50:15Z] <dancy@deploy1002> Synchronized php-1.38.0-wmf.4/extensions/Collection: Backport: [[gerrit:730577|Api: Avoid trying to access undefined offset in a user's collection (T293261)]] (duration: 01m 04s)

Change 730578 merged by jenkins-bot:

[mediawiki/extensions/Collection@wmf/1.38.0-wmf.3] Api: Avoid trying to access undefined offset in a user's collection

https://gerrit.wikimedia.org/r/730578

Mentioned in SAL (#wikimedia-operations) [2021-10-13T22:01:16Z] <dancy@deploy1002> Synchronized php-1.38.0-wmf.3/extensions/Collection/includes/Specials/SpecialCollection.php: Backport: [[gerrit:730578|Api: Avoid trying to access undefined offset in a user's collection (T293261)]] (duration: 01m 04s)

Zabe assigned this task to xSavitar.

Should be fixed, please reopen if not.