Browse files

Removes Issue #4: Eating exception during wrap/unwrap

  • Loading branch information...
1 parent 839f154 commit 8b95eebcb31127f7a76cdd08dcac54440429e9f4 Brock Noland committed Jan 7, 2013
View
4 src/main/java/com/cloudera/hadoop/hdfs/nfs/security/SessionSecurityHandlerGSS.java
@@ -236,7 +236,7 @@ public synchronized RPCBuffer unwrap(RPCRequest request, byte[] data) throws RPC
}
return buffer;
} catch(GSSException ex) {
- throw new RPCAcceptedException(RPC_ACCEPT_GARBAGE_ARGS);
+ throw new RPCAcceptedException(RPC_ACCEPT_GARBAGE_ARGS, ex);
}
}
@Override
@@ -258,7 +258,7 @@ public synchronized RPCBuffer unwrap(RPCRequest request, byte[] data) throws RPC
return mContext.wrap(data, 0, data.length, new MessageProp(true));
} catch(GSSException ex) {
// TODO according to the RFC this should result in no response to the client
- throw new RPCAcceptedException(RPC_ACCEPT_SYSTEM_ERR);
+ throw new RPCAcceptedException(RPC_ACCEPT_SYSTEM_ERR, ex);
}
}
}

0 comments on commit 8b95eeb

Please sign in to comment.