X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fimpl%2FStorageServiceSessionCache.cpp;h=199f4fae2bf9e9c93f6b31c31af667044c843394;hb=8429fcc3997579b0531bbf254742e81ec798a14a;hp=af7e5f03a29b3a6725dc2b2ccd298c9766a0c5a5;hpb=c275909a1d8c58d6c7b584c5d4aaef50fccf1994;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/impl/StorageServiceSessionCache.cpp b/shibsp/impl/StorageServiceSessionCache.cpp index af7e5f0..199f4fa 100644 --- a/shibsp/impl/StorageServiceSessionCache.cpp +++ b/shibsp/impl/StorageServiceSessionCache.cpp @@ -767,23 +767,32 @@ SSCache::SSCache(const DOMElement* e) #ifndef SHIBSP_LITE if (conf.isEnabled(SPConfig::OutOfProcess)) { - string ssid = XMLHelper::getAttrString(e, nullptr, _StorageService); + string ssid(XMLHelper::getAttrString(e, nullptr, _StorageService)); if (!ssid.empty()) { m_storage = conf.getServiceProvider()->getStorageService(ssid.c_str()); if (m_storage) m_log.info("bound to StorageService (%s)", ssid.c_str()); + else + m_log.warn("specified StorageService (%s) not found", ssid.c_str()); + } + if (!m_storage) { + m_storage = conf.getServiceProvider()->getStorageService(nullptr); + if (m_storage) + m_log.info("bound to arbitrary StorageService"); + else + throw ConfigurationException("SessionCache unable to locate StorageService, check configuration."); } - if (!m_storage) - throw ConfigurationException("SessionCache unable to locate StorageService, check configuration."); ssid = XMLHelper::getAttrString(e, nullptr, _StorageServiceLite); if (!ssid.empty()) { m_storage_lite = conf.getServiceProvider()->getStorageService(ssid.c_str()); if (m_storage_lite) - m_log.info("bound to StorageServiceLite (%s)", ssid.c_str()); + m_log.info("bound to 'lite' StorageService (%s)", ssid.c_str()); + else + m_log.warn("specified 'lite' StorageService (%s) not found", ssid.c_str()); } if (!m_storage_lite) { - m_log.info("No StorageServiceLite specified. Using standard StorageService."); + m_log.info("StorageService for 'lite' use not set, using standard StorageService"); m_storage_lite = m_storage; }