commit | 22d7822d5c2e045613e95b8a29df9bc27812b287 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Fri Jul 19 10:35:40 2019 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Mon Jul 22 14:31:24 2019 +0800 |
tree | 5a81c5796df118107e6abaa09ec63e10175a8ccf | |
parent | 6f7ec80eb14084228cd7d8dae580da4b794c2595 [diff] |
Fix array index out of bounds exception We should be verified string length when the phosphor-webui calls the getFirmwares function to handle the property value of ExtenVersion. because it is risky to get the first address of array when that is empty Tested: Built phosphor-webui and get a effective array of titlePart via console from WEBUI. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ife08d208eb7fbeb71284ae0700fb5d871343a298
The OpenBMC WebUI is a Web-based user interface for the OpenBMC firmware stack. The WebUI uses AngularJS. Features include:
nodejs (>= 4.2.6) npm (>= 5.6.0)
Note The default installation of your Linux distro may not come with the required versions above. See the following for more information on updating:
https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-node https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-npm
npm install
Note This must be run from within the phosphor-webui git repository.
npm run-script server
This will start a server instance and begin listening for connections at http://localhost:8080
. This development server provides live reloading on code changes. NOTE: Browsing to https://<BMC>
and accepting the self-signed certificate might be required to prevent your browser from blocking traffic to the BMC.
Enter the BMC Host or BMC IP address, username, and password. The default username and password are root
/0penBmc
.
Note that some OpenBMC implementations use bmcweb for its backend. For security reasons, bmcweb will need to be recompiled and loaded onto the target BMC Host before the above redirect command will work. The option to turn on within bmcweb is BMCWEB_INSECURE_DISABLE_XSS_PREVENTION
.