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

SO Manage Announcement Entries not working after deleting a user NullPointerException, 'Social Office Announcements' is temporarily unavailable

    Details

      Description

      Steps to reproduce:

      1) Install the "SO Announcements" plugin
      2) Login as admin.
      3) Navigate to Control panel > Users and Organizations > Add > User.
      4) create user 'A'.
      5) assign A user 'Administrator' role.
      6) Navigate to home page.
      7) Add 'Social Office Announcements' portlet on home page.
      8) click on 'Add Entry' button in 'Social Office Announcements' application.
      9) create an announcement entry under General 'Distribution Scope'.
      10) login as A user created before.
      11) create an announcement entry under General 'Distribution Scope'.
      12) Login as Test.
      13) Navigate to Control panel > Users and Organizations.
      14) deactivate test user and delete him.
      15) Navigate to home page.
      16) click on 'Manage Entries' button in 'Social Office Announcements' application.
      27) select General in 'Distribution Scope' field.
      Result: Error comes 'Social Office Announcements' is temporarily unavailable.
      Console throws NullPointerException

      The root cause of the issue is that in the manage_entries.jsp the user is queried by the userId stored in the announcementEntry table. Since that user doesn't exist anymore the User object becomes null.

        Attachments

          Activity

            People

            Assignee:
            sylvia.luan Sylvia Luan
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 18 weeks, 3 days ago

                Packages

                Version Package
                6.2.X EE
                7.0.X EE
                Master