Bug 200789 - Konqueror fails with HTTP errors 302 and 301.
Summary: Konqueror fails with HTTP errors 302 and 301.
Status: CLOSED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: http (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: regression
: 201274 201301 201307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-19 20:07 UTC by Knut Johansson
Modified: 2012-08-17 17:21 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Johansson 2009-07-19 20:07:47 UTC
Version:            (using Devel)
Compiler:          gcc version 4.3.2  
OS:                Linux
Installed from:    Compiled sources

Konqueror fails with HTTP errors 302 and 301.

After a upgrade from 4.3RC2 to newest 4.3 branch on Saturday Jun 18, and a new update Sunday to svn 999102.

After the updates I started to get lots of HTTP 302 and 301 errors in Konqueror, on URL that have never given such errors.

Example of URL generating 302 Found error:
http://www.linux.com/articles/feature/

Example of URL giving 301 Moved Permanently error:
http://osnews.com/
Comment 1 Tommi Tervo 2009-07-19 20:15:50 UTC
Could you revert r996832 and retest? This is only change made in kio/http 4_3 branch which I found.
http://lists.kde.org/?l=kde-commits&m=124761529815756&w=2
Comment 2 Knut Johansson 2009-07-19 21:58:45 UTC
Reverted kdelibs/kioslave/http back to r991488

Everything worked as before, no more 302 and 301s.

So r996832 cause the problem.
Comment 3 Maksim Orlovich 2009-07-19 22:00:13 UTC
Oddly trunk works fine, too (@r997984).
Comment 4 Andreas Hartmetz 2009-07-21 22:11:36 UTC
SVN commit 1000698 by ahartmetz:

- Set m_mimeTypeSent in one more place to better avoid sending mimeType() too
  often.
- Do not send mimeType() if the result of the request is a redirection.
Thanks to dfaure for finding the problem from the browser's POV and for
the first hunk of the patch.
The bugfix that caused the problems is not in trunk so far, by the way.
BUG:200789


 M  +2 -1      http.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1000698
Comment 5 David Faure 2009-07-22 15:47:37 UTC
*** Bug 195311 has been marked as a duplicate of this bug. ***
Comment 6 Pino Toscano 2009-07-23 21:32:22 UTC
*** Bug 201274 has been marked as a duplicate of this bug. ***
Comment 7 Christophe Marin 2009-07-24 01:11:13 UTC
*** Bug 201301 has been marked as a duplicate of this bug. ***
Comment 8 Darin McBride 2009-07-24 07:02:07 UTC
I've taken the above patch and applied it to my kdelibs (4.3rc3), and confirmed it fixed the issue.  Thanks for the quick turnaround.
Comment 9 Maksim Orlovich 2009-07-24 18:46:36 UTC
*** Bug 201307 has been marked as a duplicate of this bug. ***
Comment 10 Adrián Chaves (Gallaecio) 2012-08-15 09:19:50 UTC
This issue can be closed.
Comment 11 Andreas Hartmetz 2012-08-15 10:52:02 UTC
Fixed!
Comment 12 Adrián Chaves (Gallaecio) 2012-08-15 13:06:03 UTC
Can you change the status to CLOSED FIXED? (as opposed to RESOLVED FIXED) :)