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

Message Board thread counts are incorrect after deleting a post that is marked as Spam

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.20 EE GA2, 6.1.30 EE GA3, 6.2.0 CE M3
    • Labels:
      None
    • Environment:
      LIFERAY VERSION: 6.1.20, 6.1.X REV 132595, TRUNK REV. 132514
      OPERATING SYSTEM: N/A
      APPLICATION SERVER: Tomcat 6.x
      JAVA VIRTUAL MACHINE: N/A
      DATABASE: MySQL 5.1
      RELEVANT PORTLET: Akismet EE (Message Board spam blocker)

      Description

      ISSUE
      Message Board thread counts are incorrect after deleting a post that is marked as Spam. With Akismet EE deployed, we are able to block posts on the Message Boards as Spam. Marking a post as spam will take the thread count down by 1, and then deleting that post will take it down by 1 again. This will effectively create an incorrect thread/post count. In our replication environment, we will be adding a new category, adding a new thread, and then adding a new post. This post will be marked as spam, then deleted. You will notice on the main Message Board page that the Threads and Posts will report as "-1" rather than "0".

      STEPS TO REPRODUCE
      1. Deploy Akismet EE portlet
      2. Add a Message Board portlet
      3. Add a Category (Message Board)
      4. Add a post (Message Board), and notice that the thread count of the Category is 1
      5. Click Mark as Spam on the post
      6. Verify the thread count again, and notice that it is 0.
      7. Delete the post that is marked as spam, and notice that the thread count will be -1

      TRUNK REV. 132514
      Issue reproduced using Akismet portlet for Trunk

      6.1.X REV. 132595
      Issue reproduced using Akismet portlet for 6.1.X Branch

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dustin.ryerson Dustin Ryerson (Inactive)
              Reporter:
              brian.suh Brian Suh
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 41 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.20 EE GA2
                  6.1.30 EE GA3
                  6.2.0 CE M3