RFR: 8215916: The failure reason of an optional JAAS LoginModule is not logged [v7]
Weijun Wang
weijun at openjdk.org
Tue Aug 16 14:52:19 UTC 2022
On Tue, 16 Aug 2022 13:49:34 GMT, Jayashree Huttanagoudar <duke at openjdk.org> wrote:
>> Could you please review the changes?
>> This patch is to address : https://bugs.openjdk.org/browse/JDK-8215916?jql=labels%20%3D%20starter-bug
>
> Jayashree Huttanagoudar has updated the pull request incrementally with one additional commit since the last revision:
>
> Address review comment for cross-platform in the test case
> Ok. But the change what I had for LoginContext.java in this commit was not appropriate : [13a51a6](https://github.com/openjdk/jdk/commit/13a51a6d2e026225ec8ac9f1516c7f709c72ce08) right?
No. If you only put the reason inside an exception but the overall login succeeds, this exception is dismissed and will not show up anywhere.
You just need to add an extra `le.printStackTrace()` call next to the existing "[LoginContext]: login OPTIONAL failure" output. Then no matter if the overall login succeeds or not you can always find it in the debug output.
-------------
PR: https://git.openjdk.org/jdk/pull/9159
More information about the security-dev
mailing list