Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
4.7.4
-
None
-
N950 running Meego 1.2 Harmattan version 1.2011.34-2_PR_RM680.
Also tested on N9.
Description
We are trying to fetch MP4 videos from a server.
So something like:
source: "http://server.com/test.mp4"
To gain access to the video the request URL has to contain a bunch of parameters like:
source: "http://server.com/test.mp4?parameter1=one¶meter2=two"
One of the arguments for one of the parameters is the mime type (in this case its video/mp4).
Because the slash ("/") is part of the standard url request language the server requires that it be percent encoded (to %2f) so instead of sending video/mp4 the server wants video%2fmp4.
so our request looks something like:
source: "http://server.com/test.mp4?MimeType=video%2fmp4"
The problem is that the video player does its own percent encoding. So it sees the % in our url above and changes it to %25 (which is the percent encoding for the percent symbol (%) )and the server ends up getting:
http://server.com/test.mp4?MimeType=video%252fmp4
We thought maybe if we left it as a slash ("/") and let the video player do the percent encoding that would solve the problem but unfortunately it does not percent encode slashes.
So as you can see there is no way to get the video player to send %2f in a URL.
Attachments
Issue Links
- relates to
-
QTBUG-19925 URL encoding - XSS with XmlListModel
- Closed
-
QTBUG-22396 QML Image component can't open files with # in name
- Closed