#530: WebSearch: fix failing search in case-insensitive collections
-----------------------+---------------------
Reporter: lmarian | Owner: lmarian
Type: defect | Status: new
Priority: major | Milestone: v1.0
Component: WebSearch | Version:
Keywords: |
-----------------------+---------------------
Currently, when displaying the page of a collection, one can see the list
of documents, even if the collection name is not written in the same case
as the one defined in the collection tree (which is nice) (ex:
{{{Preprints}}} vs {{{pRePRInts}}})
The problem is that, when clicking on one of the records displayed in the
{{{pRePRInts}}} collection, an Internal Server Error page is displayed,
instead of the record.
Traceback:
{{{
File "/usr/lib64/python2.4/site-packages/invenio/search_engine.py", line
4430, in perform_request_search
cc = guess_collection_of_a_record(recid, referer)
File "/usr/lib64/python2.4/site-packages/invenio/search_engine.py", line
2812, in guess_collection_of_a_record
if recID in get_collection_reclist(name):
File "/usr/lib64/python2.4/site-packages/invenio/search_engine.py", line
357, in get_collection_reclist
if not collection_reclist_cache.cache[coll]:
KeyError: 'pRePRInts'
}}}
--
Ticket URL: <http://invenio-software.org/ticket/530>
Invenio <http://invenio-software.org>