Closed
Bug 917409
Opened 11 years ago
Closed 11 years ago
Trailing spaces on Soundcloud URLs are not stripped
Categories
(Webmaker Graveyard :: Popcorn Maker, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cade, Assigned: mjschranz)
Details
Attachments
(1 file, 1 obsolete file)
This is causing a lot of trouble.
STR:
1. add "https://soundcloud.com/offspring/americana " with the trailing space
2. add the clip to your project. it will not load.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → schranz.m
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #806115 -
Flags: review?(scott)
Comment 2•11 years ago
|
||
Comment on attachment 806115 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/209
Does not work on projects that were previously saved with trailing spaces.
Also does not work when added view the editor.
It gets more complicated too, as in the cases where it was saved incorectly, the source looks like this:
["https://soundcloud.com/zedd/zedd-legend-of-zelda-original ?butteruid=1379442881010", ""]
It has a trailing empty source, it should not.
The space is between the url and ?butteruid, so trim is never going to catch it.
It should not have a butteruid anyway.
Attachment #806115 -
Flags: review?(scott) → review-
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 806115 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/209
Fixed up.
Attachment #806115 -
Flags: review- → review?(scott)
Comment 4•11 years ago
|
||
Comment on attachment 806115 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/209
Does not fix the track event if saved in the project before this fix.
Attachment #806115 -
Flags: review?(scott) → review-
Comment 5•11 years ago
|
||
Needed to get this off my mind. It was bugging me and you seemed busier than I.
R+ on your commit plus mine.
Attachment #806413 -
Flags: review?(schranz.m)
Assignee | ||
Updated•11 years ago
|
Attachment #806413 -
Attachment is obsolete: true
Attachment #806413 -
Flags: review?(schranz.m)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 806115 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/209
Updated. You missed the trim in your patch.
Attachment #806115 -
Flags: review- → review?(scott)
Comment 7•11 years ago
|
||
Comment on attachment 806115 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/209
Looks good.
Attachment #806115 -
Flags: review?(scott) → review+
Comment 8•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/commit/43f9d5b38362d03f0f9e55d451c6d9d1844609f3
Fix Bug 917409 - Trim trailing whitespace on urls passed into add clips
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment mime type: text/plain text/plain → text/x-github-pull-request text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•