Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-75593

After session timeout Social Ratings displays 'NaN' and stops working

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 2 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP34
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.X
                Master