https://bugzilla.wikimedia.org/show_bug.cgi?id=54277

       Web browser: ---
            Bug ID: 54277
           Summary: When entityIds that do not exist are a jsondumper list
                    file an exception is thrown
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to