Importing items is horribly broken. We need to prevent it.
Version: master
Severity: major
Whiteboard: u=dev c=backend p=8
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=70898
Importing items is horribly broken. We need to prevent it.
Version: master
Severity: major
Whiteboard: u=dev c=backend p=8
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=70898
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T65228 prevent import of items | |||
Resolved | None | T67256 Allow ContentHandler to transform content on import and export |
I assume that prevention is just meant to be a temporary measure until import of items is fixed?
Until someone can come up with a concept for importing that is actually workable and maintains data integrity.
Makes sense. In that case, you can just add a hook for 'TitleQuickPermissions' in wmf-config/CommonSettings.php to deny any user the import right in the item and property namespaces.
(In reply to Kunal Mehta (Legoktm) from comment #3)
Makes sense. In that case, you can just add a hook for
'TitleQuickPermissions' in wmf-config/CommonSettings.php to deny any user
the import right in the item and property namespaces.
Sadly this is by far not this easy as core is only checking for the permissions in general, but not whether the user can import to a specific title (or namespace). I did some initial hacking in Wikibase but I'm not sure how to adopt core (that's super evil legacy code again...).
Mhm, is there any reason why this is such a high priority bug? I mean, since the import right is restricted to administrators anyway, and these are usually acting responsibly, a simple notice on Special:Import asking them not to import from ns0 should do it as well until a solution like Legoktm proposed becomes real instead of removing functionality (import of non-items) from the wikis.
Because that is not happening and people are complaining again and again about broken pages.
How can you know that before having tested it with a notice? To my knowledge, none exists yet so how they should know?
Change 133227 had a related patch set uploaded by Daniel Kinzler:
Prevent import of entities to avoid ID conflicts