marc_export calls non-existent MARC::Record->id()
Bug #1502156 reported by
Jason Stephenson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Low
|
Unassigned | ||
2.7 |
Fix Released
|
Low
|
Unassigned | ||
2.8 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Evergreen Version: 2.7+
OpenSRF Version 2.4.0+ (N/A)
PostgreSQL Version: 9.1/9.3 (N/A)
While looking into bug 1502152, I noticed that marc_export calls a non-existent method on MARC::Record. This method should actually be invoked on a different object, usually $are.
No one has likely seen this bug, yet, as it happens in error-handling code that is not likely to get called very often. It seems to be more likely to be noticed if you are dumping authority records.
A branch to correct this will be added soon.
Changed in evergreen: | |
milestone: | none → 2.9.1 |
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Galen Charlton (gmc) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I was able to trigger this by dumping all of the authority records from my database.
Here is the error message I received:
Can't locate object method "id" via package "MARC::Record" at /openils/ bin/marc_ export line 786.
Since the error occurred during error handling with no eval of its own, marc_export ceased exporting records at that point.
I have a fix prepared, but I want to give it a run through before pushing it to the working repo.