Affects Version/s: 7.2.10 DXP FP5, 7.2.X, Master
This issue affects master and 7.2 only.
Steps to reproduce:
- Take a vanilla bundle
- Add a subfolder under osgi\configs
- Start Liferay
Actual behavior: Liferay does not start up. InvocationTargetException errors appera in the console. This used to work in DXP 7.1.
Expected behavior: Liferay starts up without exceptions.
Since Liferay 7.2 (it still works in 7.1) it is not possible to have subdirectories in the $LIFERAY_HOME/osgi/configs folder. This removes the possibility to mount the folder from a Kubernetes ConfigMap as this automatically adds a subfolder named "..YYYY_MM_DD_HH_mm_ss.mmmmmmm" with the mounting timestamp and a symlink to the folder with the name "..data". This behavior cannot be prevented. It seems like there was a change between Liferay 7.1 and 7.2 in how the the configs folder is parsed for *.config files.
Reproduced on master on the 27th of May 2020 (9617f95b39dbb47f032785f08b71932038e1bb9e).