<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - WebResource get_data_finish returning an empty string"
href="https://bugs.webkit.org/show_bug.cgi?id=143835">143835</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WebResource get_data_finish returning an empty string
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>528+ (Nightly build)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Gtk
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zeroSteiner@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=250934" name="attach_250934" title="Bug demonstration">attachment 250934</a> <a href="attachment.cgi?id=250934&action=edit" title="Bug demonstration">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>