<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>143835</bug_id>
          
          <creation_ts>2015-04-16 11:44:53 -0700</creation_ts>
          <short_desc>WebResource get_data_finish returning an empty string</short_desc>
          <delta_ts>2017-03-11 11:04:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Spencer">zeroSteiner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1085995</commentid>
    <comment_count>0</comment_count>
      <attachid>250934</attachid>
    <who name="Spencer">zeroSteiner</who>
    <bug_when>2015-04-16 11:44:53 -0700</bug_when>
    <thetext>Created attachment 250934
Bug demonstration

I&apos;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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>250934</attachid>
            <date>2015-04-16 11:44:53 -0700</date>
            <delta_ts>2015-04-16 11:44:53 -0700</delta_ts>
            <desc>Bug demonstration</desc>
            <filename>demo.tar.bz2</filename>
            <type>application/x-bzip</type>
            <size>1180</size>
            <attacher name="Spencer">zeroSteiner</attacher>
            
              <data encoding="base64">QlpoOTFBWSZTWaN9NgcABIn/h8y6AgBw5///vu/f6P///+oABAAEBAAACFAEfi7u5bUygAECSghG
IaCekn6SPKPNKHig8ptTRpkA0ek9TR6nijR6g0Knkp70hT0nlD0gAaD1BoA9TRso0ZAA0A0EVP01
Q9IAaAZNAAAAYgAAAAAHNGjQ0wgGmBNNAGQ0MQBoxGhgjIAJEiACExE/SYIU9TyQPUPUMjEAAMgH
qBR6Ufeav5fKucoR/1TBDrEkjKlvcxG5Vg573PMUQjUisQ0MEoRYLQDAbBtJo69WzqXhP1pc/9zV
NDbabagOnfJFgF1DhkMX5vGQhosJK6hiHpRZvGV4l6GERo/nz1R6+qPfivNr6ZNexm+t5pG2DdQv
FSBigc7gxGaPDsgcgIonIREeQsyJFsMdAIC+RcHcF+sV9F1RBrYkfIyQyQ50QzVpZzmmYfsAjjzU
jI325Y9jYpE6BlfDZHrzhy2RTOwdF8SdVhOSbNVeE3X2qVy2kO6OB3lcwyvjH1ByO0fXq9Bv4hxV
hNw0ys6aU+j1WWY0ntbEMYxmJzhyae7N11VPa0iGRiPeZGgjJhPts0JLzFIKEMR5tY8LfkKsMfP7
ejqi4vWCGVIZJiMmCYQ1V8WupDPDHmMCOQvTGJtYNi6XJIHBwVAQRSCkT4FBMnvUDBgiq1PHq+Q3
+6VMhkYFOJcXG9c7G/3PtW6eCnKMqN9ZiDGmTSorAXjEL/7vCKRHuHHZ9SpLsQT1IjWTwuYDW/Vw
peXObNFP5eXbBNsb2Kbm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