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

       Web browser: ---
           Summary: list=exturlusage does not show all links if there are
                    someone with an empty el_index in db externallinks
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?action=query&list=extu
                    rlusage&euquery=www.cia.gov/cia/publications/factbook/ge
                    os&eunamespace=10&euprotocol=https
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]


http://en.wikipedia.org/w/api.php?action=query&list=exturlusage&euquery=www.cia.gov/cia/publications/factbook/geos&eunamespace=10&euprotocol=https
does not show all links as expected. e.g.
http://en.wikipedia.org/w/api.php?action=query&prop=extlinks&titles=Template:Economy_of_Austria_table
contains that a link that should match.
I think its because ApiQueryExtLinksUsage uses el_index to find these links.
But as i can see on toolserverdb, in the missing cases el_index on db
externallinks is empty. I think el_to should be used in the query instead.

sql query to show the missing result on enwiki_p: select page_namespace,
page_title, e.* from page p inner join externallinks e on p.page_id = e.el_from
where el_to like 'https://www.cia.gov/cia/publications/factbook/geos%' and
page_namespace=10;


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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