wsd: fix: use only alias_groups entries when defined
ignore wopi.storage.host entries when storage.wopi.alias_groups entry is defined in config Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: I7ea73f147e283077b02bdacb37f8850f7613c0c3
This commit is contained in:
parent
04eafaf323
commit
04f81f8590
2 changed files with 7 additions and 1 deletions
|
@ -59,6 +59,8 @@ bool HostUtil::allowedWopiHost(const std::string& host)
|
|||
|
||||
void HostUtil::parseAliases(Poco::Util::LayeredConfiguration& conf)
|
||||
{
|
||||
WopiEnabled = conf.getBool("storage.wopi[@allow]", false);
|
||||
|
||||
//set alias_groups mode to compat
|
||||
if (!conf.has("storage.wopi.alias_groups"))
|
||||
{
|
||||
|
|
|
@ -90,7 +90,11 @@ void StorageBase::initialize()
|
|||
const auto& app = Poco::Util::Application::instance();
|
||||
FilesystemEnabled = app.config().getBool("storage.filesystem[@allow]", false);
|
||||
|
||||
HostUtil::parseWopiHost(app.config());
|
||||
//parse wopi.storage.host only when there is no storage.wopi.alias_groups entry in config
|
||||
if (!app.config().has("storage.wopi.alias_groups"))
|
||||
{
|
||||
HostUtil::parseWopiHost(app.config());
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FEATURE_LOCK
|
||||
CommandControl::LockManager::parseLockedHost(app.config());
|
||||
|
|
Loading…
Reference in a new issue