Page MenuHomePhabricator

API blocks query module causes PHP undefined property notice if bkprop parameter does not include 'timestamp'
Closed, ResolvedPublicPRODUCTION ERROR

Description

It includes timestamp by default, but if you set it manually without 'timestamp'...
https://en.wikipedia.org/w/api.php?action=query&list=blocks&bkprop=user

Feb 18 21:27:29 mw1208:  #012Notice: Undefined property: stdClass::$ipb_timestamp in /srv/mediawiki/php-1.25wmf16/includes/api/ApiQueryBlocks.php on line 188

Event Timeline

Krenair raised the priority of this task from to Needs Triage.
Krenair updated the task description. (Show Details)
Krenair added a subscriber: Krenair.

Change 191485 had a related patch set uploaded (by Anomie):
API: Unconditionally load ipb_timestamp in ApiQueryBlocks

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

Patch-For-Review

Anomie added a project: MediaWiki-Core-Team.
Anomie set Security to None.
Anomie moved this task from Backlog to Needs Review/Feedback on the MediaWiki-Core-Team board.

Note it only happens when continuation is needed, and in that case the continuation value is broken too.

Change 191485 merged by jenkins-bot:
API: Unconditionally load ipb_timestamp in ApiQueryBlocks

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

Anomie moved this task from Needs Review/Feedback to Done on the MediaWiki-Core-Team board.
demon triaged this task as Medium priority.Jul 9 2015, 4:40 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:12 PM