Last modified: 2014-10-15 13:36:30 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 T51642, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49642 - action=wbcreateclaim can give unrelated error about constraint violation on descriptions
action=wbcreateclaim can give unrelated error about constraint violation on d...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: testme
: 55341 (view as bug list)
Depends on: 49583
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-16 16:45 UTC by db [inactive,noenotif]
Modified: 2014-10-15 13:36 UTC (History)
7 users (show)

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


Attachments

Description db [inactive,noenotif] 2013-06-16 16:45:05 UTC
Using action=wbcreateclaim with the api can give a api error about constraint violation for a description in a language.

code=save-failed,
info=* A length constraint is triggered for language code "*".
* There is {{PLURAL:1|a constraint|constraints}} violation for {{PLURAL:1|description|descriptions}} "..." for {{PLURAL:1|language code|language codes}} "*".
message=wikibase-error-constraint-violation-description

That is a unrelated constraint when adding a new claim for a item and should not be trigged. Adding the claim works when using the GUI. Thanks.
Comment 1 Dan Michael Heggø 2013-10-05 16:34:27 UTC
This also happens for action=wbsetlabel, here's an example: (should be reproducible unless someone manually fixes the constraint violation for Q51606)

Request:

{
 'language': 'nb',
 'value': 'Approksimanter',
 'action': 'wbsetlabel', 
 'id': 'Q51606',
 ...
}

Response:

{
 'error': {
  'messages': {
   '0': {
    'type': 'error', 
    'name': 'wikibase-error-constraint-violation-description', 
    'parameters': [1, 'id', 'Aproksiman adalah bunyi fonet...']
   }, 
  'html': {
   '*': '<ul><li> A length constraint is triggered for language code "id".\n</li><li> There is a constraint violation for description "Apro      ksiman adalah bunyi fonet..." for language code "id".\n</li></ul>\n'
   }
  }
 }
}
Comment 2 Bartosz Dziewoński 2013-10-05 16:59:32 UTC
*** Bug 55341 has been marked as a duplicate of this bug. ***

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


Navigation
Links