marc_export calls non-existent MARC::Record->id()

Bug #1502156 reported by Jason Stephenson
6
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
Revision history for this message
Jason Stephenson (jstephenson) wrote :

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.

Revision history for this message
Jason Stephenson (jstephenson) wrote :
Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
tags: added: pullrequest
Galen Charlton (gmc)
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Galen Charlton (gmc)
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master, rel_2_9, rel_2_8, and rel_2_7. Thanks, Jason!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.