Last modified: 2014-08-15 12:02:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63164, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61164 - AFTv5 API error on talk pages for non-existent pages
AFTv5 API error on talk pages for non-existent pages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedbackv5 (Other open bugs)
master
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.beta.wmflabs.org/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-11 04:36 UTC by spage
Modified: 2014-08-15 12:02 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-02-11 04:36:42 UTC
When I visit http://en.wikipedia.beta.wmflabs.org/wiki/Talk:NonexistentPage the page makes a failing API call 
   http://en.wikipedia.beta.wmflabs.org/w/api.php?action=articlefeedbackv5-get-count&format=json&pageid=0&filter=*
With ?debug=1, the JS console logs:

  mw.Api error: nosuchpageid
  Object { code="nosuchpageid", info="There is no page with ID 0"}

AFTv5 is asking for the feedback count for the article whose talk page this is, but the article doesn't exist so its page ID is 0. Various parts of the AFTv5 codebase could be aware that pageID == 0 means no page, so don't bother for its feedback.  (It seems includes/api/ApiBase.php actually queries the 'page' DB table to look up page_id 0, I'll file a separate bug.)

This happens for real on beta labs when we enable Flow on a talk page such as Talk:Flow and don't create the page for it. But it's not a Flow bug.

Maybe there's a bug that AFTv5 ought not to run at all if a page is a Flow board, but the logic seems sound: this is the talk page for a page for which AFTv5 is enabled, and AFTv5 intentionally asks for a count of feedback for that page.
Comment 1 Chad H. 2014-02-11 04:40:42 UTC
See bug 61163 about removing AFTv5 from all wikis.
Comment 2 spage 2014-02-11 05:47:41 UTC
(In reply to comment #0)
> (It seems includes/api/ApiBase.php actually queries the 'page' DB
> table to look up page_id 0, I'll file a separate bug.)

I filed bug 61166.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links