-
Bug
-
Resolution: Fixed
-
Critical
-
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)