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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013852
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajorhave not tried2010-06-30 18:492010-07-24 00:00
ReporterjonalegriaesarteView Statuspublic 
Assigned Toadrianromero 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision5dd3d4843cb3
ProjectionnoneETAnoneTarget Version2.50MP20
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013852: Rollback missed in CreateFrom class

DescriptionIn file src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java, method saveInvoice a rollback is missed in this piece of code:
if (isSOTrx.equals("Y"))
       data = CreateFromInvoiceData.selectFromShipmentUpdateSOTrx(conn, this, strClaves);
else
       data = CreateFromInvoiceData.selectFromShipmentUpdate(conn, this, strClaves);

dataAux = CreateFromInvoiceData.selectPriceList(conn, this, strDateInvoiced, strPriceList);
if (dataAux == null || dataAux.length == 0) {
      myMessage = Utility.translateError(this, vars, vars.getLanguage(),
"PriceListVersionNotFound");
      return myMessage;
}

The rollback (releaseRollbackConnection(conn) line) must be before the return. This problem could happen in other pieces of code.
Proposed SolutionThe code must be

if (dataAux == null || dataAux.length == 0) {
      myMessage = Utility.translateError(this, vars, vars.getLanguage(),
"PriceListVersionNotFound");
      releaseRollbackConnection(conn);
      return myMessage;
}
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0029210)
hgbot (developer)
2010-07-11 07:30

Repository: erp/devel/pi
Changeset: 5dd3d4843cb36bbb63b134f51e2a3c79ac68484b
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Sun Jul 11 10:56:34 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/5dd3d4843cb36bbb63b134f51e2a3c79ac68484b [^]

Fixes issue 13852: Rollback missed in CreateFrom class.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
---
(0029211)
harikrishnan (reporter)
2010-07-11 07:31

Steps to test:

*The fix is to be tested in "Create Lines From" button in sales invoice.

Root Cause:

*Before when error is thrown this rolling back is not their.

Impact:

Their is no impact of this changeset.
(0029280)
hudsonbot (developer)
2010-07-14 04:43

A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5dd3d4843cb3 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/2a91111beef4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17878.obx [^]
(0029511)
psarobe (manager)
2010-07-23 11:16

Verified by code review

- Issue History
Date Modified Username Field Change
2010-06-30 18:49 jonalegriaesarte New Issue
2010-06-30 18:49 jonalegriaesarte Assigned To => adrianromero
2010-07-05 13:25 adrianromero Status new => scheduled
2010-07-05 13:25 adrianromero fix_in_branch => pi
2010-07-11 07:30 hgbot Checkin
2010-07-11 07:30 hgbot Note Added: 0029210
2010-07-11 07:30 hgbot Status scheduled => resolved
2010-07-11 07:30 hgbot Resolution open => fixed
2010-07-11 07:30 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5dd3d4843cb36bbb63b134f51e2a3c79ac68484b [^]
2010-07-11 07:31 harikrishnan Note Added: 0029211
2010-07-14 04:43 hudsonbot Checkin
2010-07-14 04:43 hudsonbot Note Added: 0029280
2010-07-23 11:16 psarobe Note Added: 0029511
2010-07-23 11:16 psarobe Status resolved => closed
2010-07-24 00:00 anonymous sf_bug_id 0 => 3033806


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker