-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins LTS 2.32.3 with ec2@1.36
JENKINS-37616 added a new "Provision" permission.
When I use the new permission, the data is lost Any usage of the permission to anything is lost when jenkins is restarted and it shows up as "Unreadable Data":
Type | Name | Error |
hudson.model.Hudson | IllegalArgumentException: Failed to parse 'hudson.model.Computer.Provision:datallah' — no such permission |
- relates to
-
JENKINS-37616 Cloud.PROVISION is not a first class citizen permission
-
- Resolved
-
- links to
Based on my testing the permissions are only registered after particular class is loaded (which makes sense as it is in the static initializer). It is a bit surprising that the permission is not listed at all until particular code is executed. I have been playing with a dummy instance and the Cloud class needed to be loaded explicitly for the permission to appear in matrix-auth. I can imagine that here user got loaded before the Cloud class got loaded causing the problem.