SourceAdaptor.pm ignores configured capabilities
Brought to you by:
zerojinx
Working with ProServer, I noticed a small bug in SourceAdaptor.pm that prevents 'capabilities' defined in the config file from being applied. The constructor initializes capabilities to an empty hash, so the branch in capabilities() that is conditional on "!exists $self->{'capabilities'}" is never executed. The attached patch fixes this, and the same bug in the handling of 'properties'. It also introduces a _parse_config_hash() helper sub to remove some duplicate code.
Patch to SourceAdaptor.pm