MediaUri changes order of parameters
Bug #451512 reported by
Guillaume Desmottes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moovida |
Fix Released
|
High
|
Ugo Riboni |
Bug Description
Consider the following simple code:
result_
When executing it I get:
result: mms://artestras
As you can see the resulting URL is slightly different, causing the server rejecting my stream request.
Related branches
tags: | added: patch-available |
Changed in elisa: | |
assignee: | nobody → Ugo Riboni (uriboni) |
Changed in elisa: | |
milestone: | none → bug-fixing-day |
Changed in elisa: | |
status: | Confirmed → In Progress |
Changed in elisa: | |
status: | In Progress → Fix Committed |
Changed in moovida: | |
assignee: | nobody → Ugo Riboni (uriboni) |
status: | Confirmed → Fix Committed |
summary: |
- MediaUri corrupts the query string + MediaUri changes order of parameters |
Changed in moovida: | |
milestone: | bug-fixing-day → 1.0.9 |
Changed in moovida: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The string you are passing to build your URI contains an HTML escaped ampersand (&) which causes the parsing of the parameters to fail. If I replace the escaped entity by its simple representation ("&") it seems to work fine.
I'm not sure whether this is a bug in the MediaUri parser that should do the conversion itself, or if the URI you're getting is malformed. HTML escaping in URLs works in firefox, but that doesn't mean it's correct according to the specification. A quick read through the RFC (http:// www.ietf. org/rfc/ rfc2396. txt) didn't convince me that HTML escaping of the query delimiters is valid.
If it happened to be the case, could you please provide a failing unit test?