Last modified: 2014-07-23 15:02:22 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 T56277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54277 - When entityIds that do not exist are in a jsondumper list file an exception is thrown
When entityIds that do not exist are in a jsondumper list file an exception i...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-18 14:41 UTC by Addshore
Modified: 2014-07-23 15:02 UTC (History)
4 users (show)

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


Attachments

Description Addshore 2013-09-18 14:41:32 UTC
This should probably have some other behaviour.

mediawiki\extensions\Wikibase\repo\maintenance>php dumpJson.php --list-file dump.txt
[
{"id":"Q2","type":"item","descriptions":{"en":{"language":"en","value":"sdfg"}},"labels":{"en":{"language":"en","value":"sdfg"}}},
{"id":"Q3","type":"item","descriptions":{"en":{"language":"en","value":"sdfgedrtyh"}},"labels":{"en":{"language":"en","value":"sdfgwerftg"}}},
EntitySerializer can only serialize Entity objects
Backtrace:
#0 mediawiki\extensions\Wikibase\lib\includes\Dumpers\JsonDumpGenerator.php(78): Wikibase\Lib\Serializers\EntitySerializer
->getSerialized(NULL)
#1 mediawiki\extensions\Wikibase\repo\maintenance\dumpJson.php(89): Wikibase\Dumpers\JsonDumpGenerator->generateDump(Objec
t(Wikibase\IO\EntityIdReader))
#2 mediawiki\maintenance\doMaintenance.php(113): Wikibase\DumpJson->execute()
#3 mediawiki\extensions\Wikibase\repo\maintenance\dumpJson.php(132): require_once('C:\Users\blub\D...')
#4 {main}
Comment 1 Marius Hoch 2014-07-15 14:56:16 UTC
Is this still an issue? (Note: This doesn't affect production as we don't use a list with entity ids)
Comment 2 Marius Hoch 2014-07-23 15:02:22 UTC
According to Daniel this is no longer a problem.

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


Navigation
Links