Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194705 - http://public.planetmirror.com/ returns 200 OK for files that don't exist
Summary: http://public.planetmirror.com/ returns 200 OK for files that don't exist
Status: RESOLVED INVALID
Alias: None
Product: Mirrors
Classification: Unclassified
Component: Server Problem (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mirror Admins
URL: http://public.planetmirror.com/pub/ge...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 13:30 UTC by Gerard Neil
Modified: 2008-03-01 15:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Neil 2007-10-04 13:30:35 UTC
The Australian distfiles mirror at http://public.planetmirror.com/pub/gentoo/distfiles/ doesn't return an HTTP 404 not found when you try and fetch a file that doesn't exist. Instead it returns 200 OK (along with html content which describes a 404 not found error).,

This means that instead of an emerge failing during the fetch, it downloads a bogus file (the descriptive content), and then goes on to fail at the source unpack stage. 

I guess in practice this won't bite very often (I only discovered it because I  patched an ebuild incorrectly), but still, doesn't seem right. After this, user will have to manually delete the bogus file from distfiles.

Reproducible: Always

Steps to Reproduce:
1. wget http://public.planetmirror.com/pub/gentoo/distfiles/this_file_does_not_exist.txt
2. Note the response is 200 OK
3. Note the content of this_file_does_not_exist.txt describes a 404 not found error
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-04 13:33:37 UTC
This is far from minor severity.
Comment 2 Shyam Mani (RETIRED) gentoo-dev 2007-10-12 14:27:01 UTC
Folks @ Planetmirror,

Can you look into this please?
Comment 3 Alex Howells (RETIRED) gentoo-dev 2007-12-17 15:49:42 UTC
I've pulled this mirror from mirrors.xml as two months has passed without response and it's a serious issue - Portage does not have a sane way to handle this situation and we don't want to direct people at mirrors which aren't 100%.

If the kind folks at Planetmirror could take a peek, comment on the bug and perhaps fix the issue, I'll be happy to add you back pronto :)

Thanks!
Comment 4 Alex Howells (RETIRED) gentoo-dev 2007-12-17 15:51:11 UTC
Altering severity to normal as they're no longer a listed mirror.
Comment 5 Shyam Mani (RETIRED) gentoo-dev 2008-03-01 15:38:19 UTC
If they're no longer listed, this bug is invalid?