# HG changeset patch # User Goffi # Date 1623425999 -7200 # Node ID 2c9e95796371cf96829421cf85a83c1a074f019a # Parent 267e4987b58b78eb273dc3d1dfbd46c7ab23d951 plugin app manager: "public_url" must NOT have a schema diff -r 267e4987b58b -r 2c9e95796371 sat/plugins/plugin_misc_app_manager.py --- a/sat/plugins/plugin_misc_app_manager.py Fri Jun 11 09:21:41 2021 +0200 +++ b/sat/plugins/plugin_misc_app_manager.py Fri Jun 11 17:39:59 2021 +0200 @@ -160,17 +160,19 @@ ) value = self.host.memory.getConfig(section, name, default) - if name == "public_url" and (not value or not value.startswith('http')): + # FIXME: "public_url" is used only here and doesn't take multi-sites into account + if name == "public_url" and (not value or value.startswith('http')): if not value: log.warning(_( - 'No value found for "public_url", using "https://example.org" for ' - 'now, please set the proper value in sat.conf')) + 'No value found for "public_url", using "example.org" for ' + 'now, please set the proper value in libervia.conf')) else: log.warning(_( - 'invalid value for "public_url" ({value}), it must start with ' - '"http", ignoring it and using "https://example.org" instead') + 'invalid value for "public_url" ({value}), it musts not start with ' + 'schema ("http"), ignoring it and using "example.org" ' + 'instead') .format(value=value)) - value = "https://example.org" + value = "example.org" if filter_ is None: pass