Closed jglick closed 1 year ago
Does this obsolete my PR #354 ?
Well, it looks like I hit the same bug you did. My change is the more conservative. Why this permission check was there to begin with, I have no idea. 6f37e39e45b188c2d21c8b1c91551b5e78db3913 by @evandbrown was not linked to a PR or Jira ticket and does not have any real explanation. I agree that there is no obvious reason why parsing a list of label names should merit a permission check. (A permission check inside readResolve
is rare but not unheard of: if you wished to ensure that a POST
of config.xml
did not allow access to some feature limited to admins.)
Correcting a deprecation. I think this was responsible for
since using
/script
to debug whyInstanceConfiguration.labelSet
was null, I tried runningreadResolve
directly and it threw an exception noting that my admin user lackedRUN_SCRIPTS
.I am not really sure why you are checking permissions in
readResolve
to begin with, but if you are going to do so, check one which still exists.