7.1.X, 7.2.X, 7.3.X, Master
We should add more debug traces in the SessionErrors class to be able to trace all the errors that are sent from the backend to the frontend.
Sometimes, the Liferay code handles an exception and stores it in the SessionErrors object but it doesn't write any trace. This makes harder to diagnose some customer problems as we will have to create a debug hotfix that it is time consuming.
Adding some debug traces in the SessionErrors class will allow us to detect the root cause of any error that is shown in the user interface even if the class that calls SessionErrors doesn't write any trace.
Steps to reproduce
- Go to Control Panel => System => Server Administration => Log levels
- Activate DEBUG trace for: com.liferay.portal.kernel.servlet.SessionErrors
- Go to Control Panel => Configuration => Instance settings => Instance configuration
- Edit the instance setting and configure an invalid mail domain, for example "##invalid##"
- Save the changes => an error is displayed in the user interface
- Check the log file:
- : A debug trace related to the validation error is written to the log file with the related exception
- : No debug trace related to the validation error is written to the log file
- mentioned in