Debugging Security Exceptions
Join the DZone community and get the full member experience.
Join For Freeone of the horrible things about securityexception is just how little information you are given.
for example, let us take a look at:
yes, that is informative. the real problem is that most security analysis is done at the method level, which means that _something_ in this method caused this problem. which meant that in order to debug this, i have to change my code to be like this:
which gives me this:
just to point out, the first, second, etc are purely artificial method names, meant just to give me some idea about the problem areas for this purpose only.
then we need to go into the code in the first method and figure out what the problem is there, and so on, and so forth.
annoying, and i wish that i knew of a better way.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments