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

Scheduler entries not registering correctly when defined in portal core (was: Display Date is invalid in Blogs)

    Details

    • Story Points:
      1
    • Fix Priority:
      4

      Description

      Currently, QuartzSchedulerEngine is not scheduling some jobs associated to MessageBus listeners because of incorrect lifecycle handling. The problem is due to schedule() being called before start(). This makes schedule() exit without further actions because the beginning of the method performs the following check:

      		if (!isEnabled(storageType)) {
      			return;
      		}
      

      and isEnabled() is returning false because isInStandbyMode() is returning true in:

      		if (scheduler.isShutdown() || scheduler.isInStandbyMode()) {
      			return false;
      		}
      

      This was discovered following the next steps to reproduce the originating bug:

      1. Add a Blogs Portlet to the default page.
      2. Add a Blog Entry:
      1) Title: Blog 1
      2) Display Date: 2 minutes in the future
      3) Content: This is Blog Entry 1
      3. Click Publish.
      4. Wait 2 minutes.

      Actual result:
      Added Blog Entry is not displayed after 2 minutes.

      Expect result:
      Added Blog Entry should be displayed after 2 minutes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian.song Ian Song (Inactive)
              Reporter:
              beck.liu Beck Liu
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 41 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 Beta 3