hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12962) KMS key names are incorrectly encoded when creating key
Date Fri, 25 Mar 2016 23:56:25 GMT

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

Hudson commented on HADOOP-12962:
---------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #9501 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9501/])
HADOOP-12962. KMS key names are incorrectly encoded when creating key. (wang: rev d4df7849a5caf749403bd89d29652f69c9c3f5a8)
* hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMS.java
* hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java


> KMS key names are incorrectly encoded when creating key
> -------------------------------------------------------
>
>                 Key: HADOOP-12962
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12962
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-12962.01.patch, HADOOP-12962.02.patch
>
>
> Creating a key that contains special character(s) in its name will result in failure
when creating, while that key is in fact created ok on the underlying key provider.
> E.g.
> {noformat}
> $hadoop key create "key name"
> key name has not been created. java.io.IOException: HTTP status [500], exception [java.net.URISyntaxException],
message [Illegal character in path at index 11: /v1/key/key name] 
> java.io.IOException: HTTP status [500], exception [java.net.URISyntaxException], message
[Illegal character in path at index 11: /v1/key/key name] 
> 	at org.apache.hadoop.util.HttpExceptionUtils.validateResponse(HttpExceptionUtils.java:159)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:548)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:506)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createKeyInternal(KMSClientProvider.java:672)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createKey(KMSClientProvider.java:680)
> 	at org.apache.hadoop.crypto.key.KeyShell$CreateCommand.execute(KeyShell.java:483)
> 	at org.apache.hadoop.crypto.key.KeyShell.run(KeyShell.java:79)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.hadoop.crypto.key.KeyShell.main(KeyShell.java:515)
> {noformat}
> but
> {noformat}
> $ hadoop key list
> Listing keys for KeyProvider: KMSClientProvider[https://hostname:16000/kms/v1/]
> key name
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message