Page MenuHomePhabricator

API: Edit label for one language fails if there is an existing constraint violation for another language
Closed, ResolvedPublic

Description

When trying the following

{
'action': 'wbsetlabel',
'id': 'Q3083',
'language': 'no',
'value': '',
...
}

I get the following response:

{'servedby': 'mw1198', 'error': {'info': 'Another item (3093) already has label "Ēna" and description "Francijas departaments" associated with language code lv.', 'code': 'failed-save', 'messages': {'0': {'type': 'error', 'name': 'wikibase-error-label-not-unique-item', 'parameters': ['Ēna', 'lv', 3093, 'Francijas departaments']}, 'html': {'*': '<p>Another item (3093) already has label "Ēna" and description "Francijas departaments" associated with language code lv.\n</p>'}}}

I have no idea how the reported constraint violation ('Another item (3093) already has label "Ēna" and description "Francijas departaments" associated with language code lv.') got there in the first place, but it doesn't seem right that it should stop my edit which is not touching the 'lv' language.

Another example from Q703932: 'Another item (216614) already has label "Alan Smith" and description "piłkarz angielski" associated with language code pl.'


Version: unspecified
Severity: normal

Details

Reference
bz55341

Event Timeline

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

Let's keep this to one bug, it's probably the same thing.

  • This bug has been marked as a duplicate of bug 49642 ***