Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 832222 Details for
Bug 1036681
Starting page listening on ${hostname}:7080 freezes if the server turns off itself during installation
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch fixing the issue
bz1036681.patch (text/plain), 5.47 KB, created by
Jirka Kremser
on 2013-12-03 17:50:06 UTC
(
hide
)
Description:
patch fixing the issue
Filename:
MIME Type:
Creator:
Jirka Kremser
Created:
2013-12-03 17:50:06 UTC
Size:
5.47 KB
patch
obsolete
>diff --git a/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml b/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml >index 585ce10..8b257ba 100644 >--- a/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml >+++ b/modules/enterprise/server/appserver/src/main/scripts/rhq-container.build.xml >@@ -456,56 +456,62 @@ > <target name="prepare-welcome-content"> > <echo>Changing the default welcome content</echo> > <!-- Simple redirect script written in EcmaScript checking if the server has fully started --> >- <replaceregexp file="${jboss.home}/welcome-content/index.html" flags="gis" match='<body>' replace=' >- <body>
 >- <script type="text/JavaScript">
 >- <!--
 >- function httpGet() {
 >- var url = "/portal/sessionAccess";
 >- var xmlHttp = null;
 >- xmlHttp = new XMLHttpRequest();
 >- xmlHttp.open("GET", url, false);
 >- xmlHttp.send(null);
 >- return xmlHttp;
 >- }
 >- function showError(msg) {
 >- var elError = document.getElementById("error");
 >- if (elError != null) {
 >- if (msg) {
 >- elError.innerHTML = "Following subsystems had problem to start: <b>" + msg + "</b>";
 >- if (msg.indexOf("storage") != -1) elError.innerHTML += "<br /><i>NOTE: Start at least one storage node as soon as possible.</i>"
 >- elError.setAttribute("style", elError.getAttribute("style").replace(/display:.*/gi, "display: visible;"));
 >- } else elError.setAttribute("style", elError.getAttribute("style").replace(/display:.*/gi, "display: none;"));
 >- }
 >- }
 >- function checkIfRunning(attemptNum) {
 >- var response = httpGet();
 >- if (response.status === 200) {
 >- var json = JSON.parse(response.responseText);
 >- if (json.serverInitialized) {
 >- location.href = "/coregui";
 >- } else {
 >- showError(json.startupError);
 >- }
 >- }
 >- var elProgress = document.getElementById("progress");
 >- if (elProgress != null) {
 >- elProgress.innerHTML = elProgress.innerHTML.trim() + "." + (attemptNum % 180 == 0 ? "<br />" : "") ;
 >- }
 >- setTimeout("checkIfRunning(" + (attemptNum + 1) + ");", 3000);
 >- }
 >- checkIfRunning(16);
 >- -->
 >- </script>

 >+ <echo file="${jboss.home}/welcome-content/backend-checker.js"><![CDATA[function httpGet() { >+ var url = "/portal/sessionAccess"; >+ var xmlHttp = null; >+ xmlHttp = new XMLHttpRequest(); >+ xmlHttp.open("GET", url, false); >+ xmlHttp.send(null); >+ return xmlHttp; >+} >+ >+function showError(msg) { >+ var elError = document.getElementById("error"); >+ if (elError) { >+ if (msg) { >+ elError.innerHTML = "Following subsystems had problem to start: <b>" + msg + "</b>"; >+ if (msg.indexOf("storage") != -1) { >+ elError.innerHTML += "<br /><i>NOTE: Start at least one storage node as soon as possible.</i>" >+ } >+ elError.setAttribute("style", elError.getAttribute("style").replace(/display:.*/gi, "display: visible;")); >+ } else elError.setAttribute("style", elError.getAttribute("style").replace(/display:.*/gi, "display: none;")); >+ } >+} >+ >+function checkIfRunning(attemptNum) { >+ try { >+ var response = httpGet(); >+ } catch (error) { >+ showError(error.message + " Is the server running?"); >+ } >+ if (response && response.status === 200) { >+ var json = JSON.parse(response.responseText); >+ if (json.serverInitialized) { >+ location.href = "/coregui"; >+ } else showError(json.startupError); >+ } >+ var elProgress = document.getElementById("progress"); >+ if (elProgress) { >+ elProgress.innerHTML = elProgress.innerHTML.trim() + "." + (attemptNum % 180 == 0 ? "<br />" : "") ; >+ } >+ setTimeout("checkIfRunning(" + (attemptNum + 1) + ");", 3000); >+} >+ >+checkIfRunning(16);]]> >+</echo> >+ >+ <!-- Adding the script and noscript elements to the welcome webpage --> >+ <replaceregexp file="${jboss.home}/welcome-content/index.html" flags="gis" match='<body>' replace='<body>
 >+ <script src="backend-checker.js"> >+ </script>
 > <noscript>
 > <h1>Your browser does not support JavaScript!</h1>
 > <h2>Please turn it on or use a different browser.</h2>
 > <h2>You will NOT be automatically redirected...</h2>
 > </noscript>
'/> > >- <!-- Changing the default content of the welcome page --> >- <replaceregexp file="${jboss.home}/welcome-content/index.html" flags="gis" match='<div class="section">(.*?)</div>' replace=' >- <div class="section">
 >+ <!-- Changing the default content of the welcome page to support our indications --> >+ <replaceregexp file="${jboss.home}/welcome-content/index.html" flags="gis" match='<div class="section">(.*?)</div>' replace='<div class="section">
 > <h1>Server Initialization</h1>
 > <h3>Your server is starting, please wait.</h3>
 > <p class="WarnBlock" id="error" style="background-color: #DE7272; display: none;"></p>

You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1036681
: 832222