Last modified: 2014-02-26 11:10:37 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 T54731, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52731 - No usageexception thrown in api wbeditentities when using inconsistent languages
No usageexception thrown in api wbeditentities when using inconsistent languages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Wikidata bugs
: need-volunteer, testme
Depends on:
Blocks: repoapi
  Show dependency treegraph
 
Reported: 2013-08-11 17:16 UTC by Addshore
Modified: 2014-02-26 11:10 UTC (History)
3 users (show)

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


Attachments

Description Addshore 2013-08-11 17:16:37 UTC
When using the below params with wbeditentity

'site' => 'enwiki', 'title' => 'Berlin' , 'data' => '{"labels":{"de":{"site":"pt","title":"TestString"}}}'

an undefined index of 'language' is thrown instead of a usage exception
Comment 1 Addshore 2013-08-11 17:45:10 UTC
After a second look at the params this is because the json has 'labels' but then 'site' and 'title' rather than 'language' and 'value'.

This should still throw a usage exception though!

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


Navigation
Links