Page MenuHomePhabricator

ApiSetSiteLink needs to verify that the target site is in the correct group
Closed, ResolvedPublic

Description

ApiSetItem needs to verify that the target site is in the correct group, that is (for now), that the site is a wikipedia. The same goes for ApiSetSiteLink.

This was previously done by only listing pages in that group as possible values for the respective parameters, but due to the changes to the Sites interface, we are now again accepting all target sites, including wikibooks, etc.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=38263

Details

Reference
bz40077

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:10 AM
bzimport set Reference to bz40077.
bzimport added a subscriber: Unknown Object (MLST).

Note that this will make it difficult/impossible to link to commons.

(In reply to comment #1)

Note that this will make it difficult/impossible to link to commons.

Depends on how groups get set up, and which groups we allow for linking.

For now, all wikis that have inter-language links pointing to Wikipedia should be in the Wikipedia group, I think - that includes Meta, Commons and Species.

Verified in Wikidata demo time for sprint 15