https://bugzilla.wikimedia.org/show_bug.cgi?id=61164
Web browser: ---
Bug ID: 61164
Summary: AFTv5 API error on talk pages for non-existent pages
Product: MediaWiki extensions
Version: master
Hardware: All
URL: http://en.wikipedia.beta.wmflabs.org/wiki/Talk:Nonexis
tentPage?debug=1
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: ArticleFeedbackv5
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
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