Block or disable init url in Hybris

偶尔善良 提交于 2019-12-11 04:41:28

问题


Is there a way we can redirect /hac/platform/init to a Hybris 404 like how it happens for /hac/platform/init/execute? Also guide me with the ant targets that I must use to see the changes that I make on init.jsp and init.js (they don't go live on fly).


回答1:


I hope you want to protect the initialization trigger, which could be accidental.

Hybris OOTB you can lock the HAC 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.

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.

Refer blog for more details and other ways to block the URL itself - Answering your actual question.




回答2:


Lock system initialization screen and protect it by setting system.unlocking.disabled=true



来源:https://stackoverflow.com/questions/48516249/block-or-disable-init-url-in-hybris

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!