How to block or prevent the system initialization in Hybris HAC?


Lock the system initialization:
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.
Unlock the system initialization:
You can also unlock it without restarting the system.
  • Set system.unlocking.disabled to false (HAC>configuration)
  • Go to /hac/platform/init, Click on Unlock.


Block/Redirect URL from the web server:
If you have 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 for the initialization tab. you can use the hybris customize folder to replace the OOTB file. Read customize folder section
 {
    "path" : "/NOinit",
    "label" : "initialization",
    "skipPrefix" : false
  }

Change request mapping in storefront controller (Not sure, give a try):
You can create storefront controller and have the same request mapping, inside the controller you can redirect the request to some dummy URL.


Author Image

Ankitkumar Patel

Sr. SAP Hybris consultant, having 6+ years experience in Hybris, Java, J2EE. Extensive hands-on experience in SAP Hybris development, third-party integrations with Hybris, project architecture and design... Read more

Comments

Popular posts from this blog

Hybris flexible search query examples

How to remove or update all data records in Hybris?

Hybris backoffice customization