Enabling information about server errors in the JSON response


  • 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.


  • Liferay DXP, 7.4


  • 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 人觉得有帮助