Last modified: 2014-05-27 10:39:14 UTC
i am entering string values and sometimes they get submitted to the api for save as''fsfs\n' and 'fsfs ' with trailing spaces or return characters, and then get 'malformed input' errors and can't save. for example: api.php?action=wbformatvalue&format=json&datavalue=%7B%22value%22%3A%22fsfs++%22%2C%22type%22%3A%22string%22%7D&options=%7B%7D&datatype=string&generate=text%2Fplain action:wbsetclaim format:json claim:{"type":"statement","mainsnak":{"snaktype":"value","property":"P18","datavalue":{"type":"string","value":"fsfs "}},"id":"Q300$838e49d4-4ea0-4d57-b036-d40631678425","qualifiers":{},"qualifiers-order":[],"rank":"normal"} or: api.php?action=wbformatvalue&format=json&datavalue=%7B%22value%22%3A%22fsfs%5Cn%22%2C%22type%22%3A%22string%22%7D&options=%7B%7D&datatype=string&generate=text%2Fplain action:wbsetclaim format:json claim:{"type":"statement","mainsnak":{"snaktype":"value","property":"P18","datavalue":{"type":"string","value":"fsfs\n"}},"id":"Q300$838e49d4-4ea0-4d57-b036-d40631678425","qualifiers":{},"qualifiers-order":[],"rank":"normal"}
was bug 63301 completely fixed? or additional issues? i still experience the issue on master (and on wikidata
looks like we have "data-values/value-view": "~0.5.0" in wikibase composer.json while the value view patch for bug 63301 is in 0.6 (dev) I also think these perhaps the formatter and/or api upon save should take care of these characters.
*** This bug has been marked as a duplicate of bug 63301 ***