GNOME Bugzilla – Bug 153153
seek-to-end fails with the neon method
Last modified: 2004-12-22 21:47:04 UTC
From: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=132469 What happens is that gpdf seek()s to EOF to get the file size, we send a HTTP GET with Range: file-size and we get back a 416. This puts the vfs handle into an error state and next time gpdf tries to read it blows up (there's no error checking). Unless I'm mistaken, there's no need to actually re-start the HTTP stream when we seek - we can just put it into idle and restart next time we read() or whatever. Attaching a patch and test case against CVS HEAD. (And yes, I'll submit a patch to add error checking to gpdf too :-)
Created attachment 31725 [details] test case
Created attachment 31726 [details] [review] patch
*** Bug 152844 has been marked as a duplicate of this bug. ***
This looks right to me.