https://bugzilla.wikimedia.org/show_bug.cgi?id=55341
Web browser: ---
Bug ID: 55341
Summary: API: Edit label for one language fails if there is an
existing constraint violation for another language
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.'
--
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