Affects Version/s: 7.0.X, Master
After a user's session has timed out social ratings are still available. But, when the user attempts to rate something, no rating is added and the numbers next to the thumbs up/down icons change to "NaN." (Not a Number)
Steps to Reproduce:
1. Set Liferay's session length (in the web.xml) to 2 minutes for testing.
2. Start Liferay DXP.
3. Add a Message Boards portlet to a page.
4. Create a new thread.
5. Open the thread.
6. Wait two minutes for the session to end.
7. Attempt to rate the thread/post.
Error message is something more understandable to let the user know that they cannot rate something after their session has expired. For most users, "NaN" is not a helpful error.
Rating is not updated and "NaN" is displayed.
Reproduced in branch.
Reproduced in master.