Skip to content

Commit bf15eb0

Browse files
committed
CLOUDSTACK-1655: A regression in ConsoleProxy caused by deprecating old URL form
1 parent d55560a commit bf15eb0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxyHttpHandlerHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ public static Map<String, String> getQueryMap(String query) {
5050
ConsoleProxyPasswordBasedEncryptor encryptor = new ConsoleProxyPasswordBasedEncryptor(
5151
ConsoleProxy.getEncryptorPassword());
5252

53+
ConsoleProxyClientParam param = encryptor.decryptObject(ConsoleProxyClientParam.class, map.get("token"));
54+
5355
// make sure we get information from token only
5456
map.clear();
55-
ConsoleProxyClientParam param = encryptor.decryptObject(ConsoleProxyClientParam.class, map.get("token"));
5657
if(param != null) {
5758
if(param.getClientHostAddress() != null)
5859
map.put("host", param.getClientHostAddress());

0 commit comments

Comments
 (0)