Last modified: 2013-10-05 16:59:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57341, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55341 - API: Edit label for one language fails if there is an existing constraint violation for another language
API: Edit label for one language fails if there is an existing constraint vio...
Status: RESOLVED DUPLICATE of bug 49642
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 12:11 UTC by Dan Michael Heggø
Modified: 2013-10-05 16:59 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Michael Heggø 2013-10-05 12:11:40 UTC
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.'
Comment 1 Bartosz Dziewoński 2013-10-05 16:59:32 UTC
Let's keep this to one bug, it's probably the same thing.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links