Opened 7 years ago

Closed 7 years ago

# [[BibRef]] macro produce error

Reported by: Owned by: anonymous Roman Mohr normal TracBibPlugin normal 0.10

### Description

When I tried to render the citations using [[BibRef]] per the example, I got the following error:

Error: Macro BibRef(None) failed
expected string or buffer


Here's an example of my bibtex entry, just in case it's relevant:

@article{Quir94,
Adsnote = {Provided by the SAO/NASA Astrophysics Data System},
Author = {{Quirk}, J.~J.},
Date-Modified = {2010-05-04 10:41:10 -0400},
Doi = {10.1002/fld.1650180603},
Journal = {International Journal for Numerical Methods in Fluids},
Month = mar,
Pages = {555-574},
Title = {{A contribution to the great Riemann solver debate}},
Volume = 18,
Year = 1994,
Bdsk-Url-1 = {http://dx.doi.org/10.1002/fld.1650180603}}


and this is how I reference it :

[[BibAdd(source:trunk/hydro.bib)]]

Let's cite [[BibCite(Quir94)]].


### comment:1 Changed 7 years ago by Roman Mohr

Status: new → assigned

OK, FINALLY I found some time to look at this error. The funny thing is, that when the file is attached to the page, everything works perfect. If a file "source:trunk/somefile.bib" is loaded everything works, but if your file is loaded from the repository the macro can't load the file. I'm very curious what's responsible for that error.

### comment:2 Changed 7 years ago by Roman Mohr

Resolution: → fixed assigned → closed

(In [9945]) don't call close() on the repository. Fixes #8024

### comment:3 Changed 7 years ago by Roman Mohr

In http://trac.edgewall.org/ticket/4972#comment:5 it is expliticly said:

You should never call close() by yourself, unless you've created the Repository instance. ![...]

... but I did.

Fixed in r9945

### Modify Ticket

Change Properties