directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Haskell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRKRB-538) NullPointerException when KDC returns error response to client
Date Tue, 08 Mar 2016 21:35:40 GMT

     [ 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)

Mime
View raw message