-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, Master
-
Fix Version/s: 7.0.0 DXP FP34, 7.0.0 DXP SP7, 7.0.5 CE GA6, 7.0.X, 7.1.X, Master
-
Component/s: Ratings
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Description
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.
Expected:
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.
Actual:
Rating is not updated and "NaN" is displayed.
Additional Testing:
70x: 6ac57a04464ddc50bbfd92504b3ce4b48e62a063
Reproduced in branch.
Master: f0c0ec4bfb1548235fe605063361025ef365ca73
Reproduced in master.