[jira] [Commented] (KNOX-1094) Ensure inner exception is captured on LDAP failure

2018-11-13 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on KNOX-1094:
---

Commit f32d86085ebd7ce918be9faddc6f612e3ed1b9f0 in knox's branch 
refs/heads/master from [~risdenk]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=f32d860 ]

KNOX-1094 - Ensure inner exception is captured on LDAP failure

Signed-off-by: Kevin Risden 


> Ensure inner exception is captured on LDAP failure
> --
>
> 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
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.3.0
>
> Attachments: KNOX-1094.patch
>
>
> 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
(v7.6.3#76005)


[jira] [Commented] (KNOX-1094) Ensure inner exception is captured on LDAP failure

2018-11-10 Thread Kevin Risden (JIRA)


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

Kevin Risden commented on KNOX-1094:


[~smore] - Attached a patch to ensure the inner exception is thrown. Can you 
review?

> Ensure inner exception is captured on LDAP failure
> --
>
> 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
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.3.0
>
> Attachments: KNOX-1094.patch
>
>
> 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
(v7.6.3#76005)