Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044932
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformmajorhave not tried2020-08-17 13:502020-08-31 11:50
ReportercbernerView Statuspublic 
Assigned Tocberner 
PriorityimmediateResolutionfixedFixed in VersionPR20Q3.1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionPR20Q3.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2019-10-15
Regression introduced in release3.0PR20Q1
Regression introduced by commithttps://gitlab.com/openbravo/product/openbravo/-/commit/dded7dec5f17b8b1fc8f6c118af985c5274670a5 [^]
Triggers an Emergency PackNo
Summary

0044932: Scheduling a process without start date or start time fails

DescriptionWhen trying to schedule or reschedule a process request without start date or start time it fails with a parse date exception.

In logs:
Couldn't create quartz trigger for process Acct Server Process
java.text.ParseException: Could not parse date
    at org.openbravo.scheduling.SchedulerTimeUtils.parse(SchedulerTimeUtils.java:81) ~[classes/:?]
Steps To Reproduce- Open Process Request
- Create new Process (e.g. Log Clean Up)
- Set to scheduled and empty Start Date or Start Time fields
- Save Process Request and try to schedule it

Check logs -> There's should be a parse date error.
Proposed SolutionIf date/time is missing, use default = now in SchedulerTimeUtils parse function.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0044827 closedcberner Scheduling a process without start date or start time fails 

-  Notes
(0122470)
hgbot (developer)
2020-08-31 10:08

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/131 [^]
(0122478)
hgbot (developer)
2020-08-31 11:50

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 6204d642099cc8f4ed353a50b339c0ce6b12a757
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2020-08-31T10:07:17+02:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/6204d642099cc8f4ed353a50b339c0ce6b12a757 [^]

Fixes ISSUE-44932: Allow scheduling a process without start date or time

Previously it was possible to schedule a process without start date or
time, assuming current date and current time. This was lost in a
refactor.
A new method getCurrentDateTime has been added to SchedulerTimeUtils to
get the missing part of date/time provided assuming "now" when missing.
It will return the date + time in the expected format for timestamp and
parse.

Fixes regression introduced in commit dded7dec5f17b8b1fc8f6c118af985c5274670a5

---
M src/org/openbravo/scheduling/SchedulerTimeUtils.java
M src/org/openbravo/scheduling/trigger/LaterTriggerGenerator.java
M src/org/openbravo/scheduling/trigger/ScheduledTriggerGenerator.java
---
(0122479)
hgbot (developer)
2020-08-31 11:50

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/131 [^]

- Issue History
Date Modified Username Field Change
2020-08-31 10:02 cberner Type defect => backport
2020-08-31 10:02 cberner Target Version => PR20Q3.1
2020-08-31 10:08 hgbot Note Added: 0122470
2020-08-31 11:50 hgbot Resolution open => fixed
2020-08-31 11:50 hgbot Status scheduled => closed
2020-08-31 11:50 hgbot Fixed in Version => PR20Q3.1
2020-08-31 11:50 hgbot Note Added: 0122478
2020-08-31 11:50 hgbot Note Added: 0122479


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker