mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8649: Fixed unnecessary double url decoding in registerSSHKeyPair.
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This closes #615
(cherry picked from commit 2e79c628e0)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
server/src/com/cloud/server/ManagementServerImpl.java
This commit is contained in:
parent
fd459b89ff
commit
8dc8e9b8f3
|
|
@ -16,9 +16,7 @@
|
|||
// under the License.
|
||||
package com.cloud.server;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
|
|
@ -3617,11 +3615,7 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
|||
|
||||
String name = cmd.getName();
|
||||
String key = cmd.getPublicKey();
|
||||
try {
|
||||
key = URLDecoder.decode(key, "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
s_logger.warn("key decoding tried invain: " + e.getLocalizedMessage());
|
||||
}
|
||||
|
||||
String publicKey = getPublicKeyFromKeyKeyMaterial(key);
|
||||
String fingerprint = getFingerprint(publicKey);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue