Is there any way to lock Hybris by Initializing System accidentally on Production Environment. It is too risky if some one mistakenly click on initialize button.
We can use this setting in our local.properties on the production system to avoid the running system from being initialized accidentally from the administration page:
system.unlocking.disabled=true
Hybris highly recommend to use this setting once you have your system up and running.
As I answered here, let me tell other ways to achieve this.
Lock the system initialization using properties
To lock the system for initialization and update add the unlocking (system.unlocking.disabled=true
) properties to your local.properties
file and rebuild your system.
Block/Redirect URL from the web server
If you have a web server in place for admin console, You can block or redirect /hac/platform/initURL
to some dummy URL(/hac/platform/NOinit
) from the web server itself. Do the google for your web server configuration for the same.
Change request mapping in Hybris HAC(Not recommend):
HAC request mapping is done by defaultHacConfiguration.json
file. You can change the request mapping itself.
{
"path" : "/NOinit",
"label" : "initialization",
"skipPrefix" : false
}
Refer the detailed post here
© 2022 - 2024 — McMap. All rights reserved.