-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins - 2.414.1
matrix-auth-plugin 3.2
Configuration as Code Plugin Version 1700.v6f448841296e
-
-
3.2.1
When exporting matrix-auth configuration with Jenkins Configuration as Code Plugin the resulting yaml contains translated entries as Permissions which will then fail to upload as the permissions are unknown.
We have a Jenkins configured with german language. The Export results in:
authorizationStrategy: projectMatrix: entries: - group: name: "XXX" permissions: - "Allgemein/Administer" - group: name: "YYY" permissions: - "Allgemein/Administer" - group: name: "ZZZ" permissions: - "Allgemein/Administer" - group: name: "authenticated" permissions: - "Allgemein/Read" - "Element/Build"
So the first Element before the "/" is translated. When uploading we get then:
Error while serving https://bt.jenkins.ppt.vi.vector.int/manage/configuration-as-code/replace java.lang.IllegalArgumentException: Failed to parse 'Allgemein/Administer' --- no such permission at org.jenkinsci.plugins.matrixauth.AuthorizationContainer.parsePermission(AuthorizationContainer.java:232) at org.jenkinsci.plugins.matrixauth.integrations.casc.PermissionDefinition$StaplerConverterImpl.convert(PermissionDefinition.java:73) at io.jenkins.plugins.casc.impl.configurators.PrimitiveConfigurator.configure(PrimitiveConfigurator.java:45) at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.tryConstructor(DataBoundConfigurator.java:156) at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.instance(DataBoundConfigurator.java:75) at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:274)
- links to