Bug 31008 - [Gtk] A PNG image from chart.apis.google.com is not displayed
Summary: [Gtk] A PNG image from chart.apis.google.com is not displayed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 04:31 PST by Pacho Ramos
Modified: 2010-02-12 04:49 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos 2009-11-02 04:31:52 PST
I get this behavior with midori and epiphany-2.28 with webkit 1.1.15.2 while it works fine from firefox

Try to vote in:
http://www.publico.es/votarEncuesta?idEncuesta=260&res=freemarker&idRespuesta=1114#encuesta

and you will see that image with results is not shown at all

The image is:
http://chart.apis.google.com/chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10

and you will see that it cannot be shown by webkit browsers while it's shown on from firefox

Thanks
Comment 1 Xan Lopez 2010-02-12 02:32:09 PST
Works fine in Chromium, FWIW.
Comment 2 Xan Lopez 2010-02-12 02:34:35 PST
Looks like a libsoup bug, maybe in SoupURI:

./get does not work

niraikanai:~/git/libsoup/tests%./get "http://chart.apis.google.com/chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10"
Could not parse 'http://chart.apis.google.com/chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10' as a URL


wget does


niraikanai:~/git/libsoup/tests%wget "http://chart.apis.google.com/chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10"
--2010-02-12 12:34:05--  http://chart.apis.google.com/chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%25%7C10%25&chd=t:90,0%7C0,10
Resolving chart.apis.google.com... 74.125.79.101, 74.125.79.100, 74.125.79.102
Connecting to chart.apis.google.com|74.125.79.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1480 (1.4K) [image/png]
Saving to: “chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10.1”

100%[=================================================================================================>] 1,480       --.-K/s   in 0s      

2010-02-12 12:34:05 (113 MB/s) - “chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10.1” saved [1480/1480]

niraikanai:~/git/libsoup/tests%file chart\?cht=bvs\&chbh=121,10,20\&chs=262x190\&chco=B0113A,E6E6E6\&chl=90%\|10%\&chd=t:90,0\|0,10
chart?cht=bvs&chbh=121,10,20&chs=262x190&chco=B0113A,E6E6E6&chl=90%|10%&chd=t:90,0|0,10: PNG image, 262 x 190, 8-bit/color RGB, non-interlaced
niraikanai:~/git/libsoup/tests%
Comment 3 Xan Lopez 2010-02-12 02:57:04 PST
The problem is that the URL is using '%' as data without escaping it, which libsoup does not accept (following the RFC). What others do, like wget, is auto-escape when they figure out the character is not being used in the context of percent-escaping.
Comment 4 Xan Lopez 2010-02-12 04:34:00 PST
I have opened bug https://bugzilla.gnome.org/show_bug.cgi?id=609731 upstream to track this.
Comment 5 Pacho Ramos 2010-02-12 04:49:10 PST
Thanks a lot