Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 212610

Summary: Add 404 pages
Product: Gentoo Infrastructure Reporter: Raúl Porcel (RETIRED) <armin76>
Component: [OLD] gpackagesAssignee: Gentoo Packages Website <gpackages>
Status: RESOLVED OBSOLETE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Return 404 for bad query parameters or when there are no results instead of redirecting to /

Description Raúl Porcel (RETIRED) gentoo-dev 2008-03-07 19:03:01 UTC
Something like this: http://www.gentoo.org/ubuntu
would be cool.

ATM if you type a wrong url on packages.g.o, it redirects to the main page, which makes you lose the URL you tried to browse.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-03-07 19:03:34 UTC
Bah, sorry for the bugspam
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-08 04:50:45 UTC
No, it doesn't redirect you at the moment.

http://packages.gentoo.org/ubuntu
Just gives you a 404.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2010-03-08 06:22:55 UTC
Ok, this is what i mean, sorry i didn't specify it:

http://packages.gentoo.org/package/glibccc?arches=linux
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2011-02-11 22:30:36 UTC
This cannot be done trivially in apache, because IMHO the queries is passed to the python-handler. I guess you need to "raise cherrypy.HTTPError(404)" there.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2011-09-11 18:10:10 UTC
Created attachment 286143 [details, diff]
Return 404 for bad query parameters or when there are no results instead of redirecting to /
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2015-10-01 14:33:09 UTC
Will no longer affect our replacement site due to launch soon. Closing.