Bug 8905: Error when accessing invalid authority
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 11 Oct 2012 19:05:07 +0000 (15:05 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 25 Oct 2012 13:06:37 +0000 (15:06 +0200)
commitcc9b23d3d72418492c43d34222128541cda1aced
treee1e71b5093771f62d87fb611b1c0d05c0b528a65
parent215c8f4e3b9da5c390c43eb8e3cd704c2861e102
Bug 8905: Error when accessing invalid authority

The GetAuthority shim does not check that authority retrieval was
successful, and therefore can call ->record on an undefined value.

This can be reproduced by trying to load an invalid authority record
using bulkmarcimport. There may be other ways to trigger it, but I'm
not sure what they are.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
another way to trigger this error is just forging your URL with a wrong
authid !
C4/AuthoritiesMarc.pm