[RTFACT-14883] User plugin: System role is not dropped when exception occurs Created: 31/Aug/17 Updated: 25/May/18
|Project:||Artifactory Binary Repository|
Consider the following plugin:
Note that when exception happens within `asSystem` block, system role is not dropped even though code execution exits `asSystem` scope and the whole request gets elevated to system account allowing it to perform any action. This is not something that one would expect from the code.
Please update `asSystem` implementation to drop system role even when the block is exited through exception.
|Comment by Yehuda Hadad [ 14/May/18 ]|
Thank you for reporting this issue, you are welcome to watch and vote for this JIRA ticket in order to get updated with the issue resolution progress.