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 T65301, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63301 - String-value statement: additional "\n" added to the string when hitting return for saving
String-value statement: additional "\n" added to the string when hitting retu...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=frontend p=5 s=2014-04-01
:
: 65786 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-31 13:57 UTC by tobias.gritschacher
Modified: 2014-05-27 10:39 UTC (History)
6 users (show)

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


Attachments

Description tobias.gritschacher 2014-03-31 13:57:42 UTC
If you're adding a statement of type string and you're hitting the return key for saving too fast (before the save-button gets enabled) you're accidentally adding a "\n" to the string-value (I guess because the input box in fact is a textarea). When trying to save afterwards you're getting a "malformed input" error from the validator because of the "\n".
The same issue can probably occur for URLs.
Comment 1 Henning 2014-04-03 09:30:35 UTC
https://github.com/wmde/ValueView/pull/45
Comment 2 Mushroom 2014-04-04 14:51:22 UTC
See also bug 45925. String trimming would fix the ill effects of this bug.
Comment 3 tobias.gritschacher 2014-05-27 10:39:14 UTC
*** Bug 65786 has been marked as a duplicate of this bug. ***

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


Navigation
Links