https://bugzilla.wikimedia.org/show_bug.cgi?id=73109

Sam Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Sam Smith <[email protected]> ---
Sam Reed: are there any other notices originating from ApiMobileView.php at
around the same time?

For this to happen ApiMobileView#getData, which returns the required data about
a page, must return an empty array without the 'lastmodifiedby' key set. This
can happen in one of two ways:

1. the cache entry corresponding to the page has become invalid
2. the page is a redirect to a page in a virtual namespace (NS_SPECIAL,
NS_MEDIA)

Disregarding #1 because it feels a lot less likely than #2: there's nothing in
ApiMobileView#execute protecting against #getData returning an empty array, so
when it does, there'll be a whole bunch of undefined index notices triggered
for the following indices:

* lastmodified
* lastmodifiedby
* revision
* id
* languagecount
* displaytitle
* pageprops

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to