Enabling information about server errors in the JSON response

Issue

  • There is no error messages from api json services.
  • How to manage the serialization and access to  Json services
  • In Liferay Portal 6.2 or DXP7.0 the server response is serialized and shows information related with server errors but now their are empty.

Environment

  • Liferay DXP 7.2.7.3, 7.4

Resolution

  • All the information responses from the server should be managed in order to avoid security leaks.
  • With Json Api the exceptions are serialized and sended as they are generated. The following property was added to disable the Json service serialization. It is encouraged to set this to false in production environments:   

Additional Information

 

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助