LP#1350457: Pass caller's session to subrequests called via method_lookup
authorMike Rylander <mrylander@gmail.com>
Wed, 30 Jul 2014 17:29:46 +0000 (13:29 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 4 Feb 2016 18:10:55 +0000 (13:10 -0500)
commite1581d4248a6fd42f6ebee233387777f63e25022
tree049897f95f924d2bb80dcf51e8d31989f2396380
parent69cbe8000a5123aab33fcb2441c1e136506964a0
LP#1350457: Pass caller's session to subrequests called via method_lookup

In the process of looking up a method for an internal subrequest, we lose
session info. This is a problem when the subrequest makes a remote request,
because then the subrequest can't look up the proper locale, among other
things. The forthcoming branch passes the caller's session to the subrequest.

This patch also teaches OpenSRF object registration how to strip certain
object members -- in particular, the session -- so that introspection
continues to work.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/perl/lib/OpenSRF/Application.pm
src/perl/lib/OpenSRF/Utils/JSON.pm