-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.164.3
matrix auth plugin 2.4.2
-
-
matrix-auth-2.5
Create folder by posting attached xml to createItem?name=testFolder
This results in the following config.xml being generated.
<?xml version='1.1' encoding='UTF-8'?> <com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.8"> <description>test</description> <properties> <com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty> <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.NonInheritingStrategy"/> <permission>hudson.model.Item.Read:authenticated</permission> </com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty> <com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty reference="../com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty"/> ... <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> </com.cloudbees.hudson.plugins.folder.Folder>
As you can see we have 2 AuthorizationMatrixProperty elements.
The problem is that the ItemListener adds the AuthorizationMatrixProperty even when it already existed (see line 244 code)
This is not causing issues but is irritating.
Saving via the UI without changing anything resolves the issue.
- links to