OpenSRF log messages suggest code problem

Bug #572647 reported by Jason Stephenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
Fix Released
Undecided
Unassigned

Bug Description

Evergreen trunk r16318
OpenSRF trunk r1951
PostgreSQL 8.4
Ubuntu Karmic Koala

The following message appears in the open-ils.storage_unix.log and possibly others:

Use of uninitialized value in join or string at /usr/local/share/perl/5.8.8/OpenSRF/Application.pm line 118.

The message appears during an attempt to log an OpenSRF request that requires no parameters. The attached patch makes the above message go away and causes the actual message to be logged with the string "undef" in the parameters. I believe the bug also affect OpenSRF 1.2 as the code in question does not appear to be different between 1.2 and trunk.

Tags: pullrequest
Revision history for this message
Jason Stephenson (jstephenson) wrote :
James Fournie (jfournie)
Changed in evergreen:
status: New → Opinion
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Actually, wasn't this patch applied at some point?

Revision history for this message
Bill Erickson (berick) wrote :

I've pushed an updated patch to working => collab/berick/param-log-warning-cleanup.

http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/collab/berick/param-log-warning-cleanup

In addition to basing it on current code, it ensures that the warning in question will not occur regardless of the position of any null-valued params.

Changed in evergreen:
status: Opinion → Confirmed
tags: added: pullrequest
Changed in opensrf:
status: New → Confirmed
Changed in evergreen:
status: Confirmed → Invalid
Revision history for this message
Dan Scott (denials) wrote :

Rebased this against current master and signed off at working/user/dbs/param-log-warning-cleanup

Changed in opensrf:
milestone: none → 2.1.2
no longer affects: evergreen
Galen Charlton (gmc)
Changed in opensrf:
milestone: 2.1.2 → 2.1.3
Revision history for this message
Galen Charlton (gmc) wrote :

I've tested and signed off as well, and pushed it to master and rel_2_1.

Changed in opensrf:
status: Confirmed → Fix Committed
Galen Charlton (gmc)
Changed in opensrf:
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.