Bug 257053

Summary: HTTP KIOslave issuing conditional GET requests and not handling "304 Not Modified" responses
Product: [Unmaintained] kio Reporter: Predrag Viceic <viceic>
Component: httpAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adawit, viceic
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Predrag Viceic 2010-11-16 10:40:54 UTC
Version:           4.4 (using KDE 4.4.4) 
OS:                Linux

KDE applications are issuing Conditional GET requests (If-None-Match) when the user wants to open a file on the http/webdav server. If the file wasn't modified (according to the etag sent in If-None-Match clause), the server responds "304 Not Modified).

HTTP KIOSlave isnt able to retrieve the cached version of the file, thus the file isn't opened.

HTTP IOSlave should stop issuing conditional GET requests or implement proper handling of the "304 Not Modified" response.

Reproducible: Always

Steps to Reproduce:
Download twice this image (I suppose it will open with Gwenview, or another kde app using http kioslave):

https://documents.epfl.ch/users/p/pv/pviceic/www/Angry-PC-User.gif


Actual Results:  
The first time it will work, and the second time, the server sends 304 response and httpioslave gets confused..

Expected Results:  
The file should open
Comment 1 Dawit Alemayehu 2010-11-18 00:31:24 UTC

*** This bug has been marked as a duplicate of bug 256104 ***
Comment 2 Predrag Viceic 2010-11-18 08:12:04 UTC
The same problem stands for webdav kioslave, but unlike the http kioslave, you cannot remove the caching for webdav kioslave (or at least I didn't find how to do it..)