Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031974Openbravo ERPA. Platformpublic2016-01-21 11:052016-01-21 16:52
alostale 
alostale 
immediatemajorhave not tried
closedfixed 
5
 
3.0PR16Q13.0PR16Q1 
caristu
Core
No
0031974: detect situation created by issue 31959
Issue 0031959 creates a situation where data can be corrupted by setting incorrect dates.

This situation should be detected in order to notify users about possible problems.
see 0031959
Create a module script that generates an alert in case of all of the following conditions are satisfied:
1. PG instance
2. updating from PR14Q4
3. using old pool (note this condition does not cover the case of having used old pool for a while, and later moving to new one)
No tags attached.
blocks defect 0031973 closed alostale detect situation created by issue 31959 
Issue History
2016-01-21 11:06alostaleTypedefect => backport
2016-01-21 11:06alostaleTarget Version => 3.0PR16Q1
2016-01-21 14:07hgbotCheckin
2016-01-21 14:07hgbotNote Added: 0083502
2016-01-21 14:07hgbotStatusscheduled => resolved
2016-01-21 14:07hgbotResolutionopen => fixed
2016-01-21 14:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/83073641d170a8f789b483bdcc4a14bc0a927bbf [^]
2016-01-21 15:19alostaleReview Assigned To => caristu
2016-01-21 16:52caristuNote Added: 0083507
2016-01-21 16:52caristuStatusresolved => closed
2016-01-21 16:52caristuFixed in Version => 3.0PR16Q1
2016-01-21 16:55caristuNote Edited: 0083507bug_revision_view_page.php?bugnote_id=0083507#r10744

Notes
(0083502)
hgbot   
2016-01-21 14:07   
Repository: erp/backports/3.0PR16Q1
Changeset: 83073641d170a8f789b483bdcc4a14bc0a927bbf
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Jan 21 12:44:16 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/83073641d170a8f789b483bdcc4a14bc0a927bbf [^]

fixed issue 31974: detect situation created by issue 31959

  Added module script that creates alert when in this situation

---
A src-util/modulescript/build/classes/org/openbravo/modulescript/PgJdbcDatesIssue.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/PgJdbcDatesIssueData.class
A src-util/modulescript/src/org/openbravo/modulescript/PgJdbcDatesIssue.java
A src-util/modulescript/src/org/openbravo/modulescript/PgJdbcDatesIssue_data.xsql
---
(0083507)
caristu   
2016-01-21 16:52   
(edited on: 2016-01-21 16:55)
Code review + tested OK.

 - Modulescript is executed when updating from a version between PR15Q4 and 3.0.28174 (pi version which contains the fix)

 - Modulescript is not executed when updating before and/or after that version range.

 - Alert rule is just created once.