[OPEN-ILS-DEV] Recent commit to Application.pm

Mike Rylander mrylander at gmail.com
Sun Nov 4 07:38:21 EST 2007


On 11/4/07, Dan Scott <denials at gmail.com> wrote:
> Hi, I recently committed a change to
> trunk/src/perlmods/OpenSRF/Application.pm handler() method
> that silences a raw Perl warning when a message with no parameters is
> received. However, I just wanted to confirm that it is legal for OpenSRF
> messages to not have any parms; if that's not legal, then I should also log
> an error. I don't want to hush what could potentially be an error condition.

Nope, it's fine for @p to be an empty array.  There aren't many
methods that don't require /any/ params, but there certainly are some.

> I apologize if the expected behaviour is defined somewhere; I tried finding
> info in the wiki on the OpenSRF API but didn't find a spec for this
> instance.

This is part of the internal stack, and as such isn't exposed through
a "published" API.  Thanks for making sure!

-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  miker at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list