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

User Portrait not refreshed after update in chat, token is not used

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3

      Description

      An updated user portrait is not refreshed in the Chat portlet. The cached version is still used.

      This happens because the image token is not appended to the image url.

      view.jsp

      <img alt="" src="<%= themeDisplay.getPathImage() %>/user_portrait?img_id=<%= portraitId %>">
      

      I believe it should be something like.

      <img alt="" src="<%= themeDisplay.getPathImage() %>/user_portrait?img_id=<%= portraitId %>&t=<%= WebServerServletTokenUtil.getToken(portraitId) %>">
      

      To reproduce this issue

      1. user a: Set the profile picture
      2. user b: Open the buddies list for a different user that has this user in the list (best in a separate browser)
      3. user a: change the profile picture
      4. user b: navigate to a different page and open the buddies list
        1. expected: updated portrait
        2. is: old portrait

        Attachments

          Activity

            People

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

              Dates

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