]> git.evergreen-ils.org Git - OpenSRF.git/commit
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:11:13 +0000 (13:11 -0500)
commit675c7a693d9a5d4f228d7b7ca5fe3b3f7fd62214
tree17fdd158c1234f9c0b9df0eaa7d348e82741a2d4
parentb484a31c413a017c6b7409f3f101636f68c08c9a
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