Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014353Openbravo ERP03. Procurement managementpublic2010-08-27 13:162010-10-30 11:24
shuehner 
harikrishnan 
normalminorhave not tried
closedfixed 
5
2.50MP20 
 
Core
No
0014353: ArrayOutOfBoundsException in SL_Requisition_BPartner
Found 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)
*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.
No tags attached.
Issue History
2010-08-27 13:16shuehnerNew Issue
2010-08-27 13:16shuehnerAssigned To => adrianromero
2010-10-13 13:05harikrishnanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1047#r1047
2010-10-13 13:05harikrishnanAssigned Toadrianromero => harikrishnan
2010-10-13 13:12hgbotCheckin
2010-10-13 13:12hgbotNote Added: 0031806
2010-10-13 13:12hgbotStatusnew => resolved
2010-10-13 13:12hgbotResolutionopen => fixed
2010-10-13 13:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4c5f366a38e6e67457f697f4c59fd0fb1a52eaeb [^]
2010-10-13 13:14harikrishnanNote Added: 0031808
2010-10-13 23:38hudsonbotCheckin
2010-10-13 23:38hudsonbotNote Added: 0031840
2010-10-21 17:14sureshbabuNote Added: 0032072
2010-10-21 17:14sureshbabuStatusresolved => closed
2010-10-30 11:24anonymoussf_bug_id0 => 3098728

Notes
(0031806)
hgbot   
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   
2010-10-13 13:14   
Impact:

Their is no impact because of this changeset.
(0031840)
hudsonbot   
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   
2010-10-21 17:14   
verified