Closed
Bug 408380
Opened 18 years ago
Closed 17 years ago
[404] link to http://www.mozilla.org/access/unix/atspi-support
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zcerza, Unassigned)
References
()
Details
Attachments
(2 files, 1 obsolete file)
Actual broken link is: http://www.mozilla.org/access/unix/atspi-support#events
Probably others too. Looks like the page was migrated, but some links weren't changed?
| Assignee | ||
Updated•18 years ago
|
Product: mozilla.org → Websites
Comment 1•18 years ago
|
||
Copying Aaron for input on this bug.
Copying Sheppy since the MDC link in this bug is pointing to an empty page. I'm not sure if the reporter put in an incorrect URL or if this was a page that got moved but not redirected.
http://developer.mozilla.org/en/docs/Accessibility/AT-SPI_Support
Comment 2•18 years ago
|
||
OK, my brain has apparently failed, along with my notetaking skills. Where is the archive server again? :)
Comment 3•18 years ago
|
||
http://www-archive.mozilla.org/
You can also find this link on any 404 page on www.mozilla.org.
Comment 4•18 years ago
|
||
We should redirect to this:
http://developer.mozilla.org/En/Accessibility:AT-APIs
Comment 5•18 years ago
|
||
Looks like this has been done. Yes?
Comment 6•18 years ago
|
||
I've set up a redirect so that
http://www.mozilla.org/access/unix/atspi-support
points to
http://developer.mozilla.org/En/Accessibility:AT-APIs
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 7•18 years ago
|
||
Reed, this redirect doesn't seem to be working. Does the hyphen need to be escaped or is something else wrong with:
RewriteRule ^access/unix/atspi-support(?:/(?:index.html)?)?$ http://developer.mozilla.org/En/Accessibility:AT-APIs [R]
Comment 8•17 years ago
|
||
Marking as unconfirmed since I'm not seeing this redirect actually working.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Comment 10•17 years ago
|
||
This problem with the redirect working seems to be the same problem we're seeing in bug 481877. I'm using the same format for redirects that work for other pages, but in these two instances the redirects don't work.
Comment 11•17 years ago
|
||
I believe this rewrite needs to be changed to the following since the colon needs to be escaped. I've tried to validate this on my workstation but since I'm on windows I can't validate this since you can't use colons in filenames.
Here is the change that I think needs to be made in the .htaccess file:
RewriteRule ^access/unix/atspi-support(?:/(?:index.html)?)?$ http://developer.mozilla.org/En/Accessibility%3AAT-APIs [R]
I changed the : to a %3A to escape the colon
Comment 12•17 years ago
|
||
Here's my first attempt at creating a patch. Let me know if there's anything wrong with it.
Comment 13•17 years ago
|
||
Comment on attachment 376820 [details] [diff] [review]
Proposed patch for htaccess
Reed can review this.
Attachment #376820 -
Flags: review?(reed)
Updated•17 years ago
|
Attachment #376820 -
Flags: review?(reed) → review+
Comment 14•17 years ago
|
||
Comment on attachment 376820 [details] [diff] [review]
Proposed patch for htaccess
I don't know if this will work, but it is valid. It's worth trying.
I checked the apache documentation for mod_rewrite, and I didn't see anything as to why that wouldn't work, but googling shows some people complaining, so maybe there is something.
Comment 15•17 years ago
|
||
I just checked this in, so we'll see what happens.
Franklin, can you try verifying that this works or not in a bit? It will take up to an hour or so before this shows up on the site.
Comment 16•17 years ago
|
||
Will do. I will verify it when I get home tonight. Thanks.
Comment 17•17 years ago
|
||
I just tried it and we are still getting the 404 unfortunately.
Comment 18•17 years ago
|
||
I think I found the cause of the problem. I was able to replicate this on my machine by monkeying with my hosts file...
There is an .htaccess file in the access/unix/ directory. It has the following entries. If I comment out the bottom two entries this appears to start redirecting correctly.
In fact I commented out all the entries and this started to behave as desired. The only thing that doesn't work is if I specify the url with a slash at the end of it:
http://www.mozilla.org/access/unix/atspi-support/
Question is, will commenting out (or getting rid of the entries in the .htaccess) cause problems elsewhere?
FROM .htaccess:
Redirect permanent atspi-support.html http://developer.mozilla.org/en/docs/Accessibility/ATSPI_Support
Redirect permanent atspi-support http://developer.mozilla.org/en/docs/Accessibility/ATSPI_Support
Redirect permanent /access/unix/atspi-support.html http://developer.mozilla.org/en/docs/Accessibility/ATSPI_Support
Redirect permanent /access/unix/atspi-support http://developer.mozilla.org/en/docs/Accessibility/ATSPI_Support
Comment 19•17 years ago
|
||
And I found one more problem.
In the access/unix directory there was an html file called atspi-support.html, so long as this file was here the rewrite would not get picked up and this file would be returned instead. Should this file still exist here?
Comment 20•17 years ago
|
||
Re question in comment #18 about causing problems elsewhere -- we've got a bunch of redirects and no real way to test them other than manually right now, so it's hard to say what may break. (If there is a good way to test this sort of stuff, let's open a new bug about that).
If this seems to be a larger problem than just how we're redirecting this one particular page though, then it's worth trying to tie this bug in to the other weird redirect bugs we have open (bug 394232 and bug 450490)-- maybe these are all symptoms of the same thing?
Comment 21•17 years ago
|
||
Re question in comment #19, I assume that the atspi-support.html shouldn't be there. It often happens that redirected files don't get deleted, so that's probably what happened here.
Note that some directories remove the .html from files in URLs and others don't. That could be part of this (I had a lot of problems redirecting some pages in the press directory because of this).
Comment 22•17 years ago
|
||
CC'ing Ginn who probably knows the history of these documents.
Comment 23•17 years ago
|
||
This would need to be applied in combination with the removal of the file:
\html\access\unix\atspi-support.html.
Attachment #376820 -
Attachment is obsolete: true
Comment 24•17 years ago
|
||
I just made the changes mentioned in comment #23. Please verify after the site has had a chance to update.
Comment 25•17 years ago
|
||
This needs to be applied since it seems the escaping of characters from the original patch causeda problem. I just tested it locally and this should fix it.
Comment 26•17 years ago
|
||
OK, fixed checked in.
Comment 27•17 years ago
|
||
I just checked this and it is working correctly now. Thanks Franklin for figuring out the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago → 17 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•14 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•