]
Cheng Fang reassigned WFLY-6505:
--------------------------------
Assignee: Cheng Fang
CalendarBasedTimeout needs to trim whitespaces in
ScheduleExpression.timezone
-----------------------------------------------------------------------------
Key: WFLY-6505
URL:
https://issues.jboss.org/browse/WFLY-6505
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 10.0.0.Final
Reporter: Cheng Fang
Assignee: Cheng Fang
Priority: Minor
When creating a calendar-based timer with a timezone id having leading/trailiing
whitespaces, the specified timezone is ignored and the system default timezone is used
instead.
Although there is a warning, users may not notice it and would still expect the requested
timezone to be used.
The logged warning:
{code:text}
13:18:14,259 WARN [org.jboss.as.ejb3] (default task-42) WFLYEJB0015: Unknown timezone
id:
US/Eastern
found in schedule expression. Ignoring it and
using server's timezone: America/New_York
{code}
The user-provided timezone 'US/Eastern' is a valid timezone (after trimming).