Open timja opened 8 years ago
Probably should be fixed implicitly by a rewrite of permission registration, as mentioned in JENKINS-17200.
jvz:
In my current proposal around permissions, this error wouldn't happen as permissions are loaded lazily. Before that, I also had a ConcurrentMap for registering permissions, so even that was using putIfAbsent to avoid duplicating permissions in the UI.
[Originally related to: JENKINS-17200]
Noticed it during JENKINS-37545.
Reproduction steps:
1) Manually deploy a plugin with detached dependencies and permission groups (e.g. Ownership 0.5)
2) The loading should fail...
3) Install missing dependencies
4) Deploy the plugin again
5) Change the log
Expected behavior:
The plugin installation succeeds
Actual behavior:
Plugin installation fails due to the missing permission group
Workaround:
Restart the instance
Originally reported by oleg_nenashev, imported from: When dynamic plugin load fails, PermissionGroups are not being cleaned up