Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
PUBLIC - Liferay Portal Community Edition
  • PUBLIC - Liferay Portal Community Edition
  • LPS-34373 Display date can be set before the cr...
  • LPS-26221

Alarms/Announcements are not sent if display date is in the past

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.0 CE GA1, 6.1.1 CE GA2, 6.1.20 EE GA2
  • Fix Version/s: 6.1.X EE, 6.2.0 CE M5
  • Component/s: Collaboration, Collaboration > Announcements
  • Labels:
    • QA-R
    • QA-TP
    • ee-ts
    • usability
  • Environment:
    Jboss 7.1, Liferay 6.1.ga CE
  • Branch Version/s:
    6.1.x
  • Backported to Branch:
    Committed
  • Business Value:
    4
  • Similar Issues:
    Show 5 results 

    LPS-26224Alarms/Announcements are being sent twice
    LPS-28630Past publication date and future publication date of announcements are not working correctly
    LPS-34373Display date can be set before the creation date
    LPS-6454Selenium - Web Content List portlet display articles before the display date
    LPS-14617The past tense of split is split

Description

Announcements are not sent if display date is in the past and announcement check interval passes while creating the announcement.

This can be achieved by setting announcements.entry.check.interval=1 and creating announcement and waiting 1 minute before hitting save. This happens because display date is set to "current time" when entry is started being edited and if announcements entry check happens before user saves the entry it will not get sent (if user does not alter the display date manually).

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
Hide
Permalink
David Kubitza added a comment - 27/Mar/13 1:07 AM

Whenever display date < now - interval there are no notification emails sent out. I found this code which seems to be the reason:
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/announcements/service/impl/AnnouncementsEntryLocalServiceImpl.java#L130

As this is current master trunk it also affects Liferay 6.2.X.

In line 134 (https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/announcements/service/impl/AnnouncementsEntryLocalServiceImpl.java#L134) it fetches announcements by display date which is clearly wrong because the user can manipulate the display date in any kind. Here you need to use the creation date of the announcement, as it can't be changed by the user. The modification date would also be an option, if notifications should also be send after a change of an existing announcement.

Show
David Kubitza added a comment - 27/Mar/13 1:07 AM Whenever display date < now - interval there are no notification emails sent out. I found this code which seems to be the reason: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/announcements/service/impl/AnnouncementsEntryLocalServiceImpl.java#L130 As this is current master trunk it also affects Liferay 6.2.X. In line 134 ( https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/announcements/service/impl/AnnouncementsEntryLocalServiceImpl.java#L134 ) it fetches announcements by display date which is clearly wrong because the user can manipulate the display date in any kind. Here you need to use the creation date of the announcement, as it can't be changed by the user. The modification date would also be an option, if notifications should also be send after a change of an existing announcement.

People

  • Assignee:
    Serena Song
    Reporter:
    Samuli Saarinen
    Participants of an Issue:
    David Kubitza, Samuli Saarinen, Serena Song
Vote (0)
Watch (3)

Dates

  • Created:
    22/Mar/12 4:58 AM
    Updated:
    Sunday 7:53 PM
    Resolved:
    23/Apr/13 9:24 PM
    Days since last comment:
    8 weeks, 1 day ago

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.