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

            Bug ID: 72317
           Summary: ItemPage.fromPage should not send page title with
                    section
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Wikidata
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

Wikibase API does not handle page titles with sections.  ItemPage.fromPage
currently sends them.

Compare

https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=New%20York%20City

with

https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=New%20York%20City%23foo

ItemPage.fromPage needs to either raise an error, or strip the section from the
title.

-- 
You are receiving this mail because:
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