Page MenuHomePhabricator

"Next #" link is displayed even if there are no more entries.
Closed, ResolvedPublic

Description

Author: christof

Description:
If you go to the Special:Log page and press the "Next #" link until you see the
last log entry, you can press it even more and are presented with empty lists.
Google-Bot is following these links until it gets bored, one for each increment.


Version: 1.4.x
Severity: minor
OS: Linux
Platform: PC
URL: http://krass.com/wiki/index.php?title=Special:Log&limit=500&offset=1000&type=&user=&page=

Details

Reference
bz1644

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:13 PM
bzimport set Reference to bz1644.
bzimport added a subscriber: Unknown Object (MLST).

Michael.Keppler wrote:

patch for HEAD

The patch adds a private variable to the log reader to count the number of log
lines shown. Depending on that number the links are shown or not.

Additionally the patch fixes another bug (without bugzilla entry). For an empty
log there is a mysql warning shown when trying to do seek(0) on the mysql
result. The patch avoids that warning.

Attached:

jeluf wrote:

Rewrote patch and committed to CVS HEAD.

SpecialLog.php, rev 1.21