Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9810

Alerts on content validation delay and unmodified content delay do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2.0
    • 4.2.0
    • None
    • None
    • 4.2 RC2

      java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
      at org.ametys.cms.alerts.AlertEngine._getUnmodifiedContentParams(AlertEngine.java:748)
      at org.ametys.cms.alerts.AlertEngine._sendUnmodifiedContentEmail(AlertEngine.java:616)
      at org.ametys.cms.alerts.AlertEngine._sendUnmodifiedAlerts(AlertEngine.java:493)
      at org.ametys.cms.alerts.AlertEngine._sendAlerts(AlertEngine.java:359)
      at org.ametys.web.alerts.AlertEngine._sendAlerts(AlertEngine.java:106)
      at org.ametys.cms.alerts.AlertEngine.run(AlertEngine.java:289)
      at java.lang.Thread.run(Thread.java:748)

       

      The parameters for alerts and reminders "remind.content.validation.delay" and "remind.unmodified.content.delay" are typed as "long" but casted as "String" in the AlertEngine, thus causing a ClassCastException when trying to send the reminders.

       

      Edit: Also affects "archive.scheduler.reminder.delay", the reminders on scheduled archiving (AlertEngine.java:794)

       

       

            Unassigned Unassigned
            glefebvre Grégory Lefebvre (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: