Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035835 | Openbravo ERP | A. Platform | public | 2017-04-25 16:22 | 2017-05-29 17:43 |
|
Reporter | JONHM | |
Assigned To | inigosanchez | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | 3.0PR17Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 46398 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035835: The scheduler fails to load some scheduled processes when an incorrect configuration should be done |
Description | The process request window allows to save incorrect configurations. When a process with incorrect scheduled configuration is launched an error is thrown. |
Steps To Reproduce | - As F&B Admin
1) Open [Process Request] window
2) Edit 'Costing Background Process' (which is already scheduled) setting its frequency as "Monthly" let the 'Day in Month' field empty and save the record. (Incorrect configuration is allowed)
3) Unschedule Process and then Reschedule Process. An error is displayed: RESCHED_ERROR For input string: "". In the console you can see:
ERROR org.openbravo.base.OBSchedulerInitializerListener - Quartz Scheduler failed to initialize: java.lang.NumberFormatException: For input string: ""
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:592)
... |
Proposed Solution | Added into ad_process_request_trg trigger the conditions to avoid invalid configurations for the process request. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035840 | | closed | alostale | can't save record after failed save in tabs with a time reference | related to | defect | 0035842 | | closed | inigosanchez | process scheduling data can be set in an inconsistent state |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-04-25 16:22 | JONHM | New Issue | |
2017-04-25 16:22 | JONHM | Assigned To | => platform |
2017-04-25 16:22 | JONHM | OBNetwork customer | => Yes |
2017-04-25 16:22 | JONHM | Modules | => Core |
2017-04-25 16:22 | JONHM | Support ticket | => 46398 |
2017-04-25 16:22 | JONHM | Regression date | => 2017-05-16 |
2017-04-25 16:22 | JONHM | Triggers an Emergency Pack | => No |
2017-04-26 08:35 | alostale | Relationship added | related to 0035840 |
2017-04-26 09:01 | alostale | Note Added: 0096182 | |
2017-04-26 09:01 | alostale | Status | new => acknowledged |
2017-04-26 09:39 | alostale | Relationship added | related to 0035842 |
2017-05-08 12:29 | maite | Resolution time | => 1494885600 |
2017-05-08 12:29 | maite | Regression date | 2017-05-16 => |
2017-05-10 13:11 | inigosanchez | Status | acknowledged => scheduled |
2017-05-10 13:11 | inigosanchez | Assigned To | platform => inigosanchez |
2017-05-10 14:03 | inigosanchez | Summary | The scheduler fails to load some scheduled processes after tomcat restart => The scheduler fails to load some scheduled processes when an incorrect configuration should be done |
2017-05-10 14:03 | inigosanchez | Description Updated | bug_revision_view_page.php?rev_id=15149#r15149 |
2017-05-10 14:03 | inigosanchez | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15151#r15151 |
2017-05-10 14:03 | inigosanchez | Proposed Solution updated | |
2017-05-13 07:55 | hgbot | Checkin | |
2017-05-13 07:55 | hgbot | Note Added: 0096573 | |
2017-05-13 07:55 | hgbot | Status | scheduled => resolved |
2017-05-13 07:55 | hgbot | Resolution | open => fixed |
2017-05-13 07:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/33c6f5b78fd885848401360a8852dbff5b4a8cc3 [^] |
2017-05-13 07:55 | inigosanchez | Review Assigned To | => alostale |
2017-05-15 12:53 | alostale | Note Added: 0096589 | |
2017-05-15 12:53 | alostale | Status | resolved => closed |
2017-05-15 12:53 | alostale | Fixed in Version | => 3.0PR17Q3 |
2017-05-29 17:43 | hudsonbot | Checkin | |
2017-05-29 17:43 | hudsonbot | Note Added: 0096964 | |
Notes |
|
|
This is due to an incorrect configuration for the process request. There is already a trigger preventing some invalid configurations to be saved, this trigger should be extended to cover this case, and re-checked for more invalid cases if they exist. |
|
|
(0096573)
|
hgbot
|
2017-05-13 07:55
|
|
Repository: erp/devel/pi
Changeset: 33c6f5b78fd885848401360a8852dbff5b4a8cc3
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Sat May 13 07:54:26 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/33c6f5b78fd885848401360a8852dbff5b4a8cc3 [^]
Fixed issue 35835: Avoid invalid configurations for the process request.
The problem was the scheduler fails to load some scheduled processes when an incorrect
configuration should be done.
There is already a trigger preventing some invalid configurations to be saved. This
trigger has be extended to cover this case and others.
---
M src-db/database/model/triggers/AD_PROCESS_REQUEST_TRG.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
|
|
|
|
|
|
|
|