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.
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.
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.
HAC request mapping is done by defaultHacConfiguration.json
file. You can change the request mapping itself.
{
"path" : "/NOinit",
"label" : "initialization",
"skipPrefix" : false
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With