Page MenuHomePhabricator

[Bug] Cannot import items, even with allowEntityImport = true, because Wikibase disallows 'direct' create action
Open, NormalPublic

Description

I cannot import items from xml (via Special:Import) due to permissions issues ('wikibase-no-direct-editing'). This is a create action and we hook into TitleQuickPermissions to disallow create actions for entity namespaces.

maybe a (perhaps not very nice) solution is yet another hook in Import.php where it checks permission? otherwise, I am not sure how to best fix.

Event Timeline

aude created this task.Sep 8 2015, 2:45 PM
aude raised the priority of this task from to Normal.
aude updated the task description. (Show Details)
aude added a subscriber: aude.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 8 2015, 2:45 PM
aude renamed this task from Cannot import items, even with allowEntityImport = true, because Wikibase disallows 'direct' create action to [Bug] Cannot import items, even with allowEntityImport = true, because Wikibase disallows 'direct' create action.Sep 10 2015, 11:35 AM
aude set Security to None.
aude moved this task from incoming to needs discussion or investigation on the Wikidata board.
jayvdb added a subscriber: jayvdb.Sep 11 2015, 3:46 AM

Maybe with https://gerrit.wikimedia.org/r/237634 by @Bene we can get rid of TitleQuickPermissions?

Bene added a comment.Sep 12 2015, 7:43 PM

@Ricordisamoa if we don't rely on that elsewhere we can safely remove it :-)