Bug 143835 - WebResource get_data_finish returning an empty string
Summary: WebResource get_data_finish returning an empty string
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-16 11:44 PDT by Spencer
Modified: 2017-03-11 11:04 PST (History)
2 users (show)

See Also:


Attachments
Bug demonstration (1.15 KB, application/x-bzip)
2015-04-16 11:44 PDT, Spencer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spencer 2015-04-16 11:44:53 PDT
Created attachment 250934 [details]
Bug demonstration

I'm using WebKit2GTK+ in Python using GObject introspection on Fedora 21 using the webkitgtk4 package. My application is trying to access the data from the WebResource using get_data and get_data_finish. For certain resources get_data_finish will return an empty string. However for the same resource WebResource.get_response().get_content_length() returns the valid and expected length of the data that I am trying to retrieve.

The request to the affected resource is made through javascript and the resource itself is an XML file. These details are a bit vague so I included a python script that reproduces the error. Running demo.py from the attached tarball will load the two resources in the webroot directory. The config.xml file will have an invalid length of 0 while the content length will be correct.