瀏覽代碼

AMBARI-20451 Storm Ambari view fails with SSL enabled Storm UI. (Sanket
Shah via Sriharsha Chintalapani).

Sriharsha Chintalapani 8 年之前
父節點
當前提交
b992fc8b4b

+ 1 - 1
contrib/views/storm/src/main/resources/scripts/utils/Utils.js

@@ -38,7 +38,7 @@ define(['require',
             success: function(response){
                 var props = response.ViewInstanceInfo.properties;
                 if(props['storm.host'] && props['storm.port']){
-                    url += "http://"+props['storm.host']+":"+props['storm.port'];
+                    url += (props['storm.sslEnabled'] === "true" ? "https://" : "http://")+props['storm.host']+":"+props['storm.port'];
                 } else {
                     Utils.notifyError("Failed to get storm hostname and port.");
                 }

+ 7 - 0
contrib/views/storm/src/main/resources/view.xml

@@ -34,4 +34,11 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt
 	<placeholder>8744</placeholder>
 	<required>true</required>
   </parameter>
+  <parameter>
+	<name>storm.sslEnabled</name>
+	<description>Enter true if SSL is enabled for Storm else false.</description>
+	<label>SSL Enabled</label>
+	<default-value>false</default-value>
+	<required>true</required>
+  </parameter>
 </view>