Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041530Openbravo ERPA. Platformpublic2019-08-02 09:152019-08-22 14:45
salvador_campanella 
alostale 
normalmajoralways
closedfixed 
5
 
pi3.0PR19Q4 
caristu
Core
No
0041530: When Two or more Property Fields are set to the Pick / Edit Lines windows. UNDEFINED Index: 24, Size: 24 Error appears
When Two or more Property Fields are set to the Pick / Edit Lines window. UNDEFINED Index: 24, Size: 24 Error appears
- Create a new module
- As System Administrator, Go to Windows Tabs and Fields
- Search by name: RFC/RTV HQL Pick / Edit Lines and select
- Create a new field:
  name: UPC/EAN
  property: product.uPCEAN
- Create another field:
  name: Product_id
  property: product.id
- ant smartbuild (optional)
- Restart Tomcat
- As a normal role, Go to Return from Customer Window.
- Create a new Return from customer
- Click on the button Pick/Edit Lines

UNDEFINED Index: 24, Size: 24 Error appears



No tags attached.
Issue History
2019-08-02 09:15salvador_campanellaNew Issue
2019-08-02 09:15salvador_campanellaAssigned To => caristu
2019-08-02 09:15salvador_campanellaModules => Core
2019-08-02 09:15salvador_campanellaResolution time => 1566511200
2019-08-02 09:15salvador_campanellaTriggers an Emergency Pack => No
2019-08-07 09:10alostaleAssigned Tocaristu => alostale
2019-08-07 09:11alostaleReview Assigned To => caristu
2019-08-07 09:19hgbotCheckin
2019-08-07 09:19hgbotNote Added: 0113859
2019-08-07 09:19hgbotStatusnew => resolved
2019-08-07 09:19hgbotResolutionopen => fixed
2019-08-07 09:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e1744209e1562420c99b90dd06110c0c126b32be [^]
2019-08-08 11:42hgbotCheckin
2019-08-08 11:42hgbotNote Added: 0113901
2019-08-09 08:03caristuNote Added: 0113918
2019-08-09 08:03caristuStatusresolved => closed
2019-08-09 08:03caristuFixed in Version => 3.0PR19Q4
2019-08-22 14:45hudsonbotCheckin
2019-08-22 14:45hudsonbotNote Added: 0114209
2019-08-22 14:45hudsonbotCheckin
2019-08-22 14:45hudsonbotNote Added: 0114218

Notes
(0113859)
hgbot   
2019-08-07 09:19   
Repository: erp/devel/pi
Changeset: e1744209e1562420c99b90dd06110c0c126b32be
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Aug 07 09:18:02 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e1744209e1562420c99b90dd06110c0c126b32be [^]

fixed bug 41530: property fields in HQL ds throws IndexOutOfBoundsException

  When retriving values to populata HQL datasources, aliases defined in the HQL
  query are used to match actual property, but column name based on AD column
  postion is used as fallback in case those properties are not defined or they
  don't match any actual property.

  When adding new property fields, it can occur the number of fields to be populated
  by the HQL is bigger than the number of columns in the corresponding AD table,
  this case was not taken into account leading to an IndexOutOfBoundsException.

  As columnName shouldn't be used, now it is not set in this situation. Although
  it is kept for the rest of the cases to preserve backward compatibility.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
---
(0113901)
hgbot   
2019-08-08 11:42   
Repository: erp/devel/pi
Changeset: a4ac557d02719875b5a05d38f7ed6fb40bdf8b94
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Aug 08 11:42:05 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a4ac557d02719875b5a05d38f7ed6fb40bdf8b94 [^]

related to issue 41530: fixed comparison

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
---
(0113918)
caristu   
2019-08-09 08:03   
Reviewed + tested OK
(0114209)
hudsonbot   
2019-08-22 14:45   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test
(0114218)
hudsonbot   
2019-08-22 14:45   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test