File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/resources Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,9 @@ public KeyVersion run() throws Exception {
184
184
keyVersion = removeKeyMaterial (keyVersion );
185
185
}
186
186
Map json = KMSUtil .toJSON (keyVersion );
187
- String requestURL = KMSMDCFilter .getURL ();
188
- int idx = requestURL .lastIndexOf (KMSRESTConstants .KEYS_RESOURCE );
189
- requestURL = requestURL .substring (0 , idx );
187
+ // String requestURL = KMSMDCFilter.getURL();
188
+ // int idx = requestURL.lastIndexOf(KMSRESTConstants.KEYS_RESOURCE);
189
+ // requestURL = requestURL.substring(0, idx);
190
190
LOG .trace ("Exiting createKey Method." );
191
191
// additional head with header("Location", getKeyURI(requestURL, name))
192
192
// no longer supported by jersey 2
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public Response toResponse(Exception e) {
109
109
s = Response .Status .BAD_REQUEST ;
110
110
} else if (e instanceof IllegalArgumentException ) {
111
111
s = Response .Status .BAD_REQUEST ;
112
- } else if (e != null && e .getCause () != null ) {
112
+ } else if (e .getCause () != null ) {
113
113
if (e .getCause () instanceof SecurityException ) {
114
114
s = Response .Status .FORBIDDEN ;
115
115
e = (Exception ) e .getCause ();
You can’t perform that action at this time.
0 commit comments