You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alexander Haskell (JIRA)" <ji...@apache.org> on 2016/03/08 22:35:40 UTC
[jira] [Updated] (DIRKRB-538) NullPointerException when KDC returns
error response to client
[ https://issues.apache.org/jira/browse/DIRKRB-538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Haskell updated DIRKRB-538:
-------------------------------------
Attachment: kdc-error-npe-fix.patch
I added a throw to the error branch. I'm not 100% certain we want to throw an exception for all other errors, but this at least will more clearly signal that an error has occurred by default.
> NullPointerException when KDC returns error response to client
> --------------------------------------------------------------
>
> Key: DIRKRB-538
> URL: https://issues.apache.org/jira/browse/DIRKRB-538
> Project: Directory Kerberos
> Issue Type: Bug
> Affects Versions: 1.0.0-RC2
> Reporter: Alexander Haskell
> Assignee: Alexander Haskell
> Attachments: kdc-error-npe-fix.patch
>
>
> In KrbHandler.onResponseMessage() kdcRequest.kdcRep is not set when we take the error branch and the error is not a KDC_ERR_PREAUTH_REQUIRED. This causes a NPE later in AsRequest.getTicket() when getKdcRep() returns null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)