Gstupp created this task. Gstupp added a project: Wikidata. Herald added a subscriber: Aklapper. |
When I try to create an item through the wikidata api with a label that is over 250 characters long, I get the following error:
{"servedby": "mw1190", "error": {"*": "See https://www.wikidata.org/w/api.php for API usage", "code": "modification-failed", "messages": [{"name": "wikibase-validator-too-long", "html": {"*": "Must be no more than 250 characters long"}, "parameters": ["250", "The yeast mitochondrial trans..."]}], "info": "Must be no more than {{PLURAL:250|one character|250 characters}} long"}}
However, I can make the item manually through the create item page, I can successfully create the item. See: https://www.wikidata.org/wiki/Q27929557
Furthermore, it doesn't seem like if the title is exactly 250 characters either:
{"error": {"code": "modification-failed", "info": "Malformed input: The yeast mitochondrial transport proteins: new sequences and consensus residues, lack of direct relation between consensus residues and transmembrane helices, _expression_ patterns of the transport protein genes, and protein-protein interactions with ", "messages": [{"name": "wikibase-validator-malformed-value", "parameters": ["The yeast mitochondrial transport proteins: new sequences and consensus residues, lack of direct relation between consensus residues and transmembrane helices, _expression_ patterns of the transport protein genes, and protein-protein interactions with "], "html": {"*": "Malformed input: The yeast mitochondrial transport proteins: new sequences and consensus residues, lack of direct relation between consensus residues and transmembrane helices, _expression_ patterns of the transport protein genes, and protein-protein interactions with "}}], "*": "See https://www.wikidata.org/w/api.php for API usage"}, "servedby": "mw1288"}
This can lead to problems if a manually created item is attempted to be written back through the api...
Cc: Gstupp, Aklapper, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs