Bugzilla – Bug 3053
Server crash during browsedb
Last modified: 2008-09-15 14:38:10 UTC
Related bug: 789 When using browsedb, if the "start" parameter is used and is greater than the number of items returned by the DB, the server will crash. The bug is traced to the following code in function "simpleHeader" in Pages.pm: -------------------------------- my ($itemCount, $startRef, $headerRef, $skinOverride, $count, $offset) = @_; $count ||= Slim::Utils::Prefs::get('itemsPerPage'); my $start = (defined($$startRef) && $$startRef ne '') ? $$startRef : 0; if ($start >= $itemCount) { $start = $itemCount - $count; <----- HERE } ---------------------------------- $start is assigned a negative value assuming your itemsPerPage($count) is larger than the amount of items found. This is bad when $start is then used to index the array in the browsedb function, as the server will crash ("Modification of non-creatable array value attempted") - may be related to bug #2233
Fixed in the next nightly. Change 6352