Closed
Bug 1211932
Opened 9 years ago
Closed 9 years ago
[Music][NGA] a % in the song filename wreak havoc
Categories
(Firefox OS Graveyard :: Gaia::Music, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
FxOS-S9 (16Oct)
People
(Reporter: hub, Assigned: hub)
References
Details
Attachments
(1 file)
a % in the song filename wreak havoc
I get a lot of "E/Music (15846): [JavaScript Error: "URIError: malformed URI sequence" {file: "app://music.gaiamobile.org/js/view.js" line: 118}]"
The URL is something like
/api/artists/info//sdcard1/Music/Ogg/Sonic%20Youth/Dirty/01%20-%20100%.ogg
or
/api/artwork/url/thumbnail//sdcard1/Music/Ogg/Sonic Youth/Dirty/01 - 100%.ogg
We should escape '%' correctly when building the URL with file names.
Comment 1•9 years ago
|
||
I thought we were doing this, but must be missing it somewhere.
BTW, great song/album/band :-)
Assignee | ||
Comment 2•9 years ago
|
||
Looking at it
Comment 3•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hub
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
Wilson,
In order to fix the problem I had to patch poplar.js. Any thought? Shall we ensure the patch is upstream? Is there a more elegant solution? I assume that a "href" attribute has to be uri encoded.
Attachment #8670607 -
Flags: feedback?(wilsonpage)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
cancelling feedback for Wilson: I no longer touch poplar.js
Justin, your thoughts? the code path for poplar is so much faster now.
Attachment #8670607 -
Flags: feedback?(wilsonpage) → feedback?(jdarcangelo)
Assignee | ||
Comment 6•9 years ago
|
||
I should write a test for this one.
Comment 7•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
I agree with the approach. Please see my comments on the PR though regarding using `map()` to create new objects instead of using `forEach()` to alter the original objects. Also, we can contain most of the calls to `encodeURIComponent` by putting it inside the `fetch()` method in the base `View` class (in "js/view.js").
Attachment #8670607 -
Flags: feedback?(jdarcangelo) → feedback+
Comment 8•9 years ago
|
||
hub: If you can post *very* detailed STR I can try to reproduce :)
Flags: needinfo?(hub)
Assignee | ||
Comment 10•9 years ago
|
||
It doesn't touch gaia-fast-list, btw.
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
I think I should have it all cornered now.
I'm curious of the memory usage and perf gain.
Attachment #8670607 -
Flags: review?(jdarcangelo)
Comment 12•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
Looks good. You can go ahead and clean up the "/player" URLs as mentioned in the comments before landing (sorry I didn't realize this sooner). Thanks!
Attachment #8670607 -
Flags: review?(jdarcangelo) → review+
Assignee | ||
Comment 13•9 years ago
|
||
Apparently I have an Orange. *sigh*
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8670607 [details] [review]
[gaia] hfiguiere:bug1211932-percent > mozilla-b2g:master
There was an error in the code that caused a failure that I missed on the integration test. I added a commit to the PR to fix it. If you don't mind reviewing these two one-liners...
Thanks,
Attachment #8670607 -
Flags: review?(jdarcangelo)
Updated•9 years ago
|
Attachment #8670607 -
Flags: review?(jdarcangelo) → review+
Assignee | ||
Comment 15•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S9 (16Oct)
You need to log in
before you can comment on or make changes to this bug.
Description
•