Ticket #2656 (new defect)

Opened 22 months ago

Feed with few results has bad paging link, causing exception

Reported by: dread Owned by: seanh
Priority: trivial Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

This page http://thedatahub.org/feeds/custom.atom?q=wombat has 0 results and contains a link to http://thedatahub.org/feeds/custom.atom?q=wombat&page=0 which the page=0 causes this exception:

ckan.lib.search.common.SearchError'>: SOLR returned an error running query
Error: "'start' parameter cannot be negative"
Note: See TracTickets for help on using tickets.