Last modified: 2014-10-17 09:27:16 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 T69801, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67801 - aliases not editable through wbeditentity
aliases not editable through wbeditentity
Status: RESOLVED WORKSFORME
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
: need-volunteer
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-10 13:07 UTC by Bene*
Modified: 2014-10-17 09:27 UTC (History)
4 users (show)

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


Attachments

Description Bene* 2014-07-10 13:07:33 UTC
It is not clear how to and perhaps not even possible to edit aliases through wbeditentity. When using the following value for data, I get this error:

{"aliases":{"en":{"language":"en","value":[{"language":"en","value":"foo"},{"language":"en","value":"bar"}]}}}

UsageException: A string was expected, but not found in the json for the langCod
e en and argument 'value'
Comment 1 Daniel Kinzler 2014-10-17 09:27:16 UTC
The correct structure, as returned by wbgetentities, is:

{"aliases":{"en":[{"language":"en","value":"foo"},{"language":"en","value":"bar"}]}}

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


Navigation
Links