Web browser: ---
            Bug ID: 61164
           Summary: AFTv5 API error on talk pages for non-existent pages
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: ArticleFeedbackv5
    Classification: Unclassified
   Mobile Platform: ---

When I visit the
page makes a failing API call*
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

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

Reply via email to