Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-31370

Likes functionality can be broken if a following user no longer exists and the site allows anonymous access

    XMLWordPrintable

    Details

      Description

      Reported on CAC. See this comment.

      The logs will show =

      ERROR [http-8090-6] [like.rest.resources.LikableContentResource] getLikes REST resource method error:
      ...
      url: /confluence/rest/likes/1.0/content/14614790/likes
      java.lang.NullPointerException
              at com.atlassian.confluence.follow.DefaultFollowManager$1.apply(DefaultFollowManager.java:75)
      

      or

      2013-10-24 09:02:27,191 ERROR [http-8090-6] [like.rest.resources.LikableContentResource] getCommentLikes REST resource method error:
      ...
       url: /confluence/rest/likes/1.0/content/1310726/comment-likes
      java.lang.NullPointerException
              at com.atlassian.confluence.follow.DefaultFollowManager$1.apply(DefaultFollowManager.java:75)
      

      Steps to reproduce

      1. Create user A in Confluence
      2. Give "Use Confluence" permission to anonymous users in Global Permissions admin screen
      3. Configure Confluence to use external user directory (Crowd or LDAP)
      4. Create user B in the external user directory and synchronise the directory in Confluence
      5. As user A, start following user B in Confluence
      6. Remove user B in the external user directory and synchronise the directory in Confluence
      7. As user A, go to any Confluence page

        Attachments

          Activity

            People

            Assignee:
            kmacleod Kenny MacLeod
            Reporter:
            pcurren Paul C
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: