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

Bug 82538

Summary: packages.gentoo.org: Fencepost error in generation of [Next] page link
Product: Gentoo Infrastructure Reporter: Jason Bucata <tech31842>
Component: [OLD] gpackagesAssignee: Albert Hopkins (RETIRED) <marduk>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://packages.gentoo.org/search/?sstring=dns;offset=22
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason Bucata 2005-02-19 00:32:17 UTC
I encountered this in real life while doing a search on packages.gentoo.org for "dns".  The database has changed (two packages added) since then to make this not fail like it used to, so I frobbed the URL as noted above.

When the last page of results is full, containing 20 results, but no more results are available to be displayed (the next page would display 0 results), it displays a [Next] link to offset=42.  Going there makes it complain that it couldn't find an ebuild to match my query.

What it *should* do is omit creating the [Next] link to that page in the first place.  It shouldn't assume that, just because this page is full, the next page will have at least one result--there's a 5% chance that it won't.
Comment 1 Albert Hopkins (RETIRED) gentoo-dev 2005-02-26 10:51:22 UTC

*** This bug has been marked as a duplicate of 33847 ***