Bug 1298651

Summary: [GSS](6.4.z) Initial calculation of the first expiration time for a scheduled timer is wrong if a start date is set
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: wfink
Component: EJBAssignee: Ivo Studensky <istudens>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.2.0, 6.2.1, 6.3.0, 6.2.2, 6.2.3, 6.2.4, 6.3.1, 6.4.0, 6.3.2, 6.3.3, 6.3.4, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6CC: bmaxwell, david.lloyd, dosoudil, dpospisi, istudens, jawilson, jbilek, pslavice
Target Milestone: CR1   
Target Release: EAP 6.4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1299882 (view as bug list) Environment:
Last Closed: 2017-01-17 12:02:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1299882, 1279552    

Description wfink 2016-01-14 16:32:41 UTC
Description of problem:

If a scheduled timer should be created with the following parameters:
ScheduleExpression[second=0 minute=0/5 hour=20-22 dayOfWeek=* dayOfMonth=* month=* year=* start=Thu Jan 14 09:45:35 GMT+1 2016]

The first schedule should be 
  Thu Jan 17 20:00:20 GMT+1 2016
but is calculated as
  Sun Jan 17 20:45:35 GMT+1 2016

The minutes are not correctly set according to the schedule.

This happen for seconds/minutes if the ScheduleExpression limit the range.

Comment 1 JBoss JIRA Server 2016-01-14 17:17:59 UTC
Wolf-Dieter Fink <wolfdieter.fink> updated the status of jira WFLY-5995 to Coding In Progress

Comment 4 JBoss JIRA Server 2016-01-21 11:22:14 UTC
Ivo Studensky <istudens> updated the status of jira JBEAP-2799 to Resolved

Comment 6 Jiří Bílek 2016-03-02 12:57:46 UTC
Verified with EAP 6.4.7.CP.CR2.

Comment 7 JBoss JIRA Server 2016-06-14 11:36:59 UTC
Jiri Pallich <jpallich> updated the status of jira JBEAP-2799 to Closed

Comment 8 Petr Penicka 2017-01-17 12:02:07 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.