You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vi...@apache.org on 2012/06/07 03:16:37 UTC

svn commit: r1347254 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/html/head.inc

Author: vikram
Date: Thu Jun  7 01:16:37 2012
New Revision: 1347254

URL: http://svn.apache.org/viewvc?rev=1347254&view=rev
Log:
AMBARI-449. Post cluster install/deploy the URL hmc/html/initializeCluster.php should be disabled (Contributed by Yusaku)

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/html/head.inc

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347254&r1=1347253&r2=1347254&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun  7 01:16:37 2012
@@ -6,7 +6,9 @@ characters wide.
 
 Release 0.1.x - unreleased
 
-  AMBARI- 448. Redesign progress popups. (Yusaku via Vikram)
+  AMBARI-449. Post cluster install/deploy the URL hmc/html/initializeCluster.php should be disabled (Yusaku via Vikram)
+
+  AMBARI-448. Redesign progress popups. (Yusaku via Vikram)
 
   AMBARI-444, 445. Nagios checks send kicks to the agent that trigger a run. Configure nagios to send email notifications when slaves go down (Suhas via Vikram)
 

Modified: incubator/ambari/branches/ambari-186/hmc/html/head.inc
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/html/head.inc?rev=1347254&r1=1347253&r2=1347254&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/html/head.inc (original)
+++ incubator/ambari/branches/ambari-186/hmc/html/head.inc Thu Jun  7 01:16:37 2012
@@ -47,6 +47,10 @@ if (sizeof($clusters) == 0) {
     switch ($state['state']) {
       case 'DEPLOYED':
         if ($state['context']['status']) {
+          if (!$bypassRouter && $requestPage == 'initializeCluster.php') {
+            eval(redirectToPage($requestPage, 'index.php'));
+            exit;
+          }
           $clusterState = 'OPERATIONAL';
         } else {
           if (!$bypassRouter && $requestPage != 'installFailed.php' && $requestPage != 'uninstallWizard.php') {