Homec4science

BibDocFile: fix check-md5 with bibdocfsinfo cache

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Jan 11 2013, 15:55.

Description

BibDocFile: fix check-md5 with bibdocfsinfo cache

  • If the new bibdocfsinfo_cache functionality is enabled by setting CFG_BIBDOCFILE_ENABLE_BIBDOCFSINFO_CACHE = 1 in invenio(-local).conf, the md5s property of BibDoc objects was not correctly initialized and calling bibdocfile --check-md5 would have failed with an unhanded exception. This is fixed here by lazy initialization of the BibDoc.md5s property. (closes #1249)

Tested-by: Tibor Simko <tibor.simko@cern.ch>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Jan 23 2013, 18:44
Parents
R3600:dc7d70434be4: BibMerge: delete cache file on submit
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:18c013cd7e51: BibDocFile: fix check-md5 with bibdocfsinfo cache (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Jan 23 2013, 18:44