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
    • Similar Issues:
      Show 5 results 

      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

        Activity

        Hide
        Michael Saechang added a comment -

        Committed on:
        Portal 6.2.x GIT ID: faf2dd8c177299857cbacadcbc01b70e798a72fd.

        Show
        Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: faf2dd8c177299857cbacadcbc01b70e798a72fd.
        Hide
        Ginson Ren added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

        Navigate to a different page and open the buddies list, it will show the old portrait.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 8c09bf96a23c8bb3140093414ec3afe227f28390.
        Plugins 6.1.x EE GIT ID: 7f78e2c9aa43d8064614f0f76575af5069e8fb3a.
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 75cb26065f222c2dc32a359c226360df12fda5d1.
        Plugins 6.2.x GIT ID: 0c860924cc9b331e23bc9e04a7595c66bbaa09c7.

        Navigate to a different page and open the buddies list, it will show the updated portrait.

        Show
        Ginson Ren added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Navigate to a different page and open the buddies list, it will show the old portrait. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 8c09bf96a23c8bb3140093414ec3afe227f28390. Plugins 6.1.x EE GIT ID: 7f78e2c9aa43d8064614f0f76575af5069e8fb3a. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 75cb26065f222c2dc32a359c226360df12fda5d1. Plugins 6.2.x GIT ID: 0c860924cc9b331e23bc9e04a7595c66bbaa09c7. Navigate to a different page and open the buddies list, it will show the updated portrait.
        Hide
        Michael Saechang added a comment -

        Thank you Ginson for testing. Closing as 'Fixed'.

        Show
        Michael Saechang added a comment - Thank you Ginson for testing. Closing as 'Fixed'.

          People

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

            Dates

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

              Development

                Structure Helper Panel