Store returns snap metadata containing carriage return characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Fix Released
|
Undecided
|
Matias Bordese |
Bug Description
While investigating bug 1702539 in GNOME Software I found that snapd was returning '\r\n' for line endings for some snap descriptions (the rest were just '\n'). Prompting the store shows these appear to be coming from there:
$ http --json https:/
HTTP/1.1 200 OK
Content-Length: 397
Content-Type: application/json
Date: Thu, 14 Sep 2017 08:39:05 GMT
Server: gunicorn/19.7.1
X-Request-Id: 8396f777-
X-VCS-Revision: 5f3da77
{
"description": "Hiri is an email client for Office 365 / Exchange / outlook.com / msn.com / hotmail.com / live.com. Basically all the Microsoft Email services :)\r\n\r\nHiri has full email, calendar and tasks functionality.
"package_name": "hiri"
}
When discussing on the forum [1] it was suggested that these might have come from the store HTML form input.
Regardless of the source, it would be ideal to standardise the newline character, and I propose to use '\n'. This might require the store to filter input to extract the carriage returns.
[1] https:/
Changed in snapstore: | |
status: | New → Fix Committed |
Changed in snapstore: | |
assignee: | nobody → Matias Bordese (matiasb) |
Changed in snapstore: | |
status: | Fix Committed → Fix Released |