Bug 19409 - Redirect URL after HTTP 301 not valid
Summary: Redirect URL after HTTP 301 not valid
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.cpumag.com/idealbb
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-06 09:00 PDT by Cngevpxhaqrefpber
Modified: 2023-05-27 06:08 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cngevpxhaqrefpber 2008-06-06 09:00:08 PDT
The website 'cpumag.com' is a simple redirect to 'computerpoweruser.com'. 'cpumag.com/idealbb' is therefore a redirect to 'computerpoweruser.com/idealbb', which then redirects to the correct index page for the IdealBB forum on the server. However, entering 'cpumag.com/idealbb' does not redirect to 'computerpoweruser.com/idealbb', and therefore instead of being redirected to the correct index page, you are redirected to an IdealBB error page. Entering 'cpumag.com' in the address bar correctly redirects to 'computerpoweruser.com', however.

I don't have much behind-the-scenes HTTP knowledge, but I did some packet sniffing and it seems that for some reason, after Webkit receives a 301 code and does a GET on the URL of the new location returned (which, it seems, it the exact same URL, 'cpumag.com/idealbb'), the response from the server (302) gives a location of 'cpumag.com/idealbb/error...', instead of a location of 'computerpoweruser.com/idealbb/redir...', which then redirects the browser to the forum.

Accessing the forum via 'computerpoweruser.com/idealbb' with Webkit works properly; the 302 response gives the valid URL. Also, I can access the forum via 'cpumag.com/idealbb' properly in both Firefox and Opera, and the 302 response from the server for these browsers gives the proper 'computerpoweruser.com/idealbb/redir...' URL.

Not sure if this is an IdealBB issue or Webkit issue but since Opera works, I'll just assume it's a Webkit issue. I've seen a few bugs (#17692, #17868) that look like they could possibly be the same issue, but I'm not positive.
Comment 1 Cngevpxhaqrefpber 2008-06-10 15:39:51 PDT
I'll also add (though it's already been reported before, I believe) that accessing the page via 'computerpoweruser.com/idealbb' executes multiple redirects, whereas FF and Opera does not.
Comment 2 Alexey Proskuryakov 2008-06-10 19:07:54 PDT
I cannot reproduce this with shipping Safari 3.1.1 on Mac OS X 10.5.3, or with a local debug build.
Comment 3 Cngevpxhaqrefpber 2008-06-11 08:20:33 PDT
I'm on OSX 10.4.11 and it happens on the latest nightly as well (June 9).

You are able to access the forums (and not an error page) by going to 'cpumag.com/idealbb'?
Comment 4 Alexey Proskuryakov 2008-06-11 08:54:36 PDT
Yes, this URL gets me to the CPU forums page. This could be a Tiger-only issue, since much of this code is not in WEbKit, but in system frameworks. I don't have access to Tiger to check that right now.
Comment 5 Graham Perrin 2008-11-01 19:13:16 PDT
At the time of writing,  
http://computerpoweruser.com/idealbb
http://www.computerpoweruser.com/idealbb 
seem to be not valid as examples. 

Using WebKit-SVN-r38064.dmg on Mac OS X 10.5.5. 
Comment 6 Anne van Kesteren 2023-05-27 06:08:49 PDT
Can no longer access the website and it seems unlikely this is still an issue.