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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0014353
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementminorhave not tried2010-08-27 13:162010-10-30 11:24
ReportershuehnerView Statuspublic 
Assigned Toharikrishnan 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision4c5f366a38e6
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP20SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0014353: ArrayOutOfBoundsException in SL_Requisition_BPartner

DescriptionFound as stacktrace on logfile on demo.openbravo.com


ff9cdf33 10:06:38 [ajp-8809-10] ERROR org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner - Error captured:
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner.printPage(SL_Requisition_BPartner.java:74)
        at org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner.doPost(SL_Requisition_BPartner.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

From checking code can happen, as never the count of the result is checked before using it. Also the calling code has some extra condition for an empty parameter being passed in but still continues with the execution flow which does not make sense (as "" for c_bpartner_id will never find any rows)
Steps To Reproduce*Go to Business Partner window and choose "Obelix Quarry SA".
*And remove the price list assigned in vendor tab.
*Now go to Requisition tab and in header choose the business partner "Obelix Quarry SA".Then this error will be thrown in the tomcat log.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0031806)
hgbot (developer)
2010-10-13 13:12

Repository: erp/devel/pi
Changeset: 4c5f366a38e6e67457f697f4c59fd0fb1a52eaeb
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Wed Oct 13 16:41:09 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/4c5f366a38e6e67457f697f4c59fd0fb1a52eaeb [^]

Fixes Issue 14353: ArrayOutOfBoundsException in SL_Requisition_BPartner

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Requisition_BPartner.java
---
(0031808)
harikrishnan (reporter)
2010-10-13 13:14

Impact:

Their is no impact because of this changeset.
(0031840)
hudsonbot (developer)
2010-10-13 23:38

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/4c5f366a38e6 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/c531f0a7334b [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18531.obx [^]
(0032072)
sureshbabu (reporter)
2010-10-21 17:14

verified

- Issue History
Date Modified Username Field Change
2010-08-27 13:16 shuehner New Issue
2010-08-27 13:16 shuehner Assigned To => adrianromero
2010-10-13 13:05 harikrishnan Steps to Reproduce Updated View Revisions
2010-10-13 13:05 harikrishnan Assigned To adrianromero => harikrishnan
2010-10-13 13:12 hgbot Checkin
2010-10-13 13:12 hgbot Note Added: 0031806
2010-10-13 13:12 hgbot Status new => resolved
2010-10-13 13:12 hgbot Resolution open => fixed
2010-10-13 13:12 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4c5f366a38e6e67457f697f4c59fd0fb1a52eaeb [^]
2010-10-13 13:14 harikrishnan Note Added: 0031808
2010-10-13 23:38 hudsonbot Checkin
2010-10-13 23:38 hudsonbot Note Added: 0031840
2010-10-21 17:14 sureshbabu Note Added: 0032072
2010-10-21 17:14 sureshbabu Status resolved => closed
2010-10-30 11:24 anonymous sf_bug_id 0 => 3098728


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker