You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandeep More (JIRA)" <ji...@apache.org> on 2017/11/01 16:00:02 UTC

[jira] [Commented] (KNOX-1094) Knox loses inner exception in IllegalArgumentException issues during AD authentications

    [ https://issues.apache.org/jira/browse/KNOX-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234266#comment-16234266 ] 

Sandeep More commented on KNOX-1094:
------------------------------------

Hello [~pbhagade@hortonworks.com] 
What message do you get with e.getMessage() ? It does log "NamingException" so that should be clear, although I do agree that wrapping the original exception would have been good as it would have preserved the stack trace.

I will move this to 0.15.0 

> Knox loses inner exception in IllegalArgumentException issues during AD authentications
> ---------------------------------------------------------------------------------------
>
>                 Key: KNOX-1094
>                 URL: https://issues.apache.org/jira/browse/KNOX-1094
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.12.0
>            Reporter: Pravin Bhagade
>            Priority: Normal
>             Fix For: 0.15.0
>
>
> Knox to use their Active Directory and noted that when IllegalArgumentException exceptions are raised from a specific point in the code, the inner exception is lost and make it difficult to diagnose the issue. 
> {code:java}
> The exception is the one at line 733 of 
> https://github.com/hortonworks/knox-release/blob/HDP-2.6.2.17-tag/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java 
> } catch (NamingException e) { 
> throw new IllegalArgumentException("Hit NamingException: " + e.getMessage()); 
> {code}
> Is it possible to change the code to preserve the inner exception ( set the Throwable argument )?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)