Last modified: 2014-05-27 10:39:14 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 T67786, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65786 - string value input with whitespace or return characters
string value input with whitespace or return characters
Status: RESOLVED DUPLICATE of bug 63301
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-27 00:22 UTC by Aude
Modified: 2014-05-27 10:39 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-05-27 00:22:12 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"}
Comment 1 Aude 2014-05-27 00:23:21 UTC
was bug 63301 completely fixed? or additional issues?

i still experience the issue on master (and on wikidata
Comment 2 Aude 2014-05-27 00:30:08 UTC
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.
Comment 3 tobias.gritschacher 2014-05-27 10:39:14 UTC

*** This bug has been marked as a duplicate of bug 63301 ***

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


Navigation
Links