stable

Clone or download

Read-only

chore(forge-config)!: dump contains LDAP variables

This commit on its own is not really useful but it brings all the logic so the next one can drop config file parsing in perl. The core of this contribution is to replace the way plugin's configuration files are loaded. Instead of having a custom parsing of dot inc files, we re-use the logic already present in ForgeConfig. In order to reduce the impact of the change, the existing API still allows to get the variables from "PluginInfo". In fact, without the future work on Variable loading, it's not actually possible to use ForgeConfig directly to get variable values in Plugin. It's because parsing of file still requires to pass via 'PluginInfo::loadPlugin' to work. While it's not perfect, the risk of miss usage is low (the code that would get the variable from ForgeConfig directly will not work) and it's a tradeoff to limit the amount of things to change to get to the objective: remove external parsing of 'dot inc' files. BREAKING CHANGE: this commit might have an impact on old platforms (🙄) that didn't follow the security recommendation of Tuleap 9 about removing the edition of properties as Site Administrator. We will need to warn about this in deployment guide & co. Part-of: story #22708 flexibility in the management of Tuleap Configuration Change-Id: I4d92332e9d81351539170d36bfc7ab295495eeff

Modified Files

Name
M plugins/ldap/include/LDAP.class.php +39 −0 Go to diff View file
M plugins/ldap/include/ldapPlugin.php +10 −2 Go to diff View file
M plugins/pluginsadministration/include/PluginPropertiesPresenter.php +1 −7 Go to diff View file
M plugins/pluginsadministration/include/PluginsAdministration.class.php +0 −7 Go to diff View file
M plugins/pluginsadministration/include/PluginsAdministrationActions.class.php +0 −47 Go to diff View file
M plugins/pluginsadministration/include/PluginsAdministrationViews.class.php +0 −23 Go to diff View file
M plugins/pluginsadministration/site-content/fr_FR/LC_MESSAGES/tuleap-pluginsadministration.po +0 −12 Go to diff View file
M plugins/pluginsadministration/templates/plugin-properties.mustache +0 −25 Go to diff View file
M src/common/CLI/Command/ConfigDumpCommand.php +5 −5 Go to diff View file
A src/common/CLI/Command/ConfigDumpEvent.php +32 −0 Go to diff View file
M src/common/Config/ForgeConfig.php +7 −0 Go to diff View file
M src/common/Plugin/PluginFileInfo.php +9 −147 Go to diff View file
M src/common/Plugin/PluginInfo.php +8 −42 Go to diff View file
M src/etc/local.inc.dist +0 −6 Go to diff View file
M src/utils/tuleap.php +1 −1 Go to diff View file
M tests/unit/common/CLI/Command/ConfigDumpCommandTest.php +34 −2 Go to diff View file
M tests/unit/common/Plugin/PluginInfoTest.php +0 −38 Go to diff View file
M tools/setup/el7/include/setup.sh +0 −2 Go to diff View file