Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040381Openbravo ERP09. Financial managementpublic2019-03-14 12:172019-03-28 14:56
inaki_garcia 
alostale 
normalminoralways
closedfixed 
5
pi 
3.0PR19Q2 
caristu
Core
No
0040381: incorrect warn message logged by ReadOnlyDataSourceService for P&E
In Return to Vendor window, Pick/Edit a warning message is logged when it is opened having Lines records previously selected.

This issue has been identified by qa-pi-returnto-pgsql job of the QA tab in CI when the job is set to perform "install.source", and is also manually reproducible.
1. Log in as Group Admin
2. Create a new header in Return to Vendor window
3. Click on Pick/Edit button
4. Select one record and click on Done
5. Click again on Pick/Edit button
  -> Check log:

2019-03-13 10:09:46,615 [http-2] WARN org.openbravo.service.datasource.ReadOnlyDataSourceService - The amount of selected records is higher than the maximum page size allowed.
No tags attached.
related to defect 0036193 closed alostale DefaultJsonDataService logs an exception if property *obSelected* is not found in the Entity when fetching data for PickAndEdit 
related to defect 0039644 closed alostale Add product p&e is not sorting the selected records when clearing filters 
related to defect 00319893.0PR16Q2 closed caristu Wrong behavior in order/invoices grid in Add Payment process definition when having >100 records selected 
related to defect 0035396 closed mcobas Cannot remove an orphan line from a return to vendor or a return from customer document 
blocks design defect 0036162 acknowledged Triage Platform Base clean up openbravo.log 
Issue History
2019-03-14 12:17inaki_garciaNew Issue
2019-03-14 12:17inaki_garciaAssigned To => platform
2019-03-14 12:17inaki_garciaModules => Core
2019-03-14 12:17inaki_garciaTriggers an Emergency Pack => No
2019-03-14 12:29inaki_garciaAssigned Toplatform => aferraz
2019-03-14 12:29inaki_garciaCategoryA. Platform => 09. Financial management
2019-03-14 13:21SandrahuguetAssigned Toaferraz => markmm82
2019-03-14 13:25aferrazAssigned Tomarkmm82 => Triage Finance
2019-03-14 13:28SandrahuguetAssigned ToTriage Finance => markmm82
2019-03-14 17:19markmm82Statusnew => scheduled
2019-03-22 09:13alostaleAssigned Tomarkmm82 => platform
2019-03-22 09:13alostaleStatusscheduled => feedback
2019-03-22 09:13alostaleSummaryReadOnlyDataSourceService throws a warning in Tomcat log when editting/deleting an RTV line on a newly set up context => incorrect warn message logged by ReadOnlyDataSourceService for P&E
2019-03-22 09:13alostaleDescription Updatedbug_revision_view_page.php?rev_id=18510#r18510
2019-03-22 09:13alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18512#r18512
2019-03-22 09:13alostaleStatusfeedback => new
2019-03-22 09:14alostaleRelationship addedblocks 0036162
2019-03-22 09:14alostaleStatusnew => acknowledged
2019-03-22 09:57alostaleRelationship addedrelated to 0036193
2019-03-22 10:05alostaleRelationship addedrelated to 0039644
2019-03-22 10:06alostaleRelationship addedrelated to 0031989
2019-03-22 10:52alostaleAssigned Toplatform => alostale
2019-03-22 10:53alostaleReview Assigned To => caristu
2019-03-22 11:02hgbotCheckin
2019-03-22 11:02hgbotNote Added: 0110585
2019-03-22 11:02hgbotStatusacknowledged => resolved
2019-03-22 11:02hgbotResolutionopen => fixed
2019-03-22 11:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a810b4994a69de230e1966a37e360e646246121a [^]
2019-03-22 11:02hgbotCheckin
2019-03-22 11:02hgbotNote Added: 0110586
2019-03-27 10:54caristuRelationship addedrelated to 0035396
2019-03-27 11:12hgbotCheckin
2019-03-27 11:12hgbotNote Added: 0110673
2019-03-27 13:04caristuNote Added: 0110683
2019-03-27 13:04caristuStatusresolved => closed
2019-03-27 13:04caristuFixed in Version => 3.0PR19Q2
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110883
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110884
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110895

Notes
(0110585)
hgbot   
2019-03-22 11:02   
Repository: erp/devel/pi
Changeset: a810b4994a69de230e1966a37e360e646246121a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Mar 22 10:56:16 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a810b4994a69de230e1966a37e360e646246121a [^]

fixed bug 40381: incorrect warn logged by ReadOnlyDataSourceService for P&E

  RODSS increases page size up to a limit in case last record is selected in
  order to retrieve all selected records. The logic to detect whether this
  increase is necessary was not considering the case of all records being
  selected because the filter is restrictive enough.

  This is now fixed by increasing it only in case the amount of selected records
  is bigger than the actual page size.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
---
(0110586)
hgbot   
2019-03-22 11:02   
Repository: erp/devel/pi
Changeset: 38f6527079acc33e22045fb6ab9c08206e99ba51
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Mar 22 11:01:34 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/38f6527079acc33e22045fb6ab9c08206e99ba51 [^]

related to bug 40381: add some context info to the log

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
---
(0110673)
hgbot   
2019-03-27 11:12   
Repository: erp/devel/pi
Changeset: 0f7bd818ce073affb38125539eced37449f140f9
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Mar 27 11:11:53 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0f7bd818ce073affb38125539eced37449f140f9 [^]

related to bug 40381: minor code improvements

  - Use instanceof to check the type of the obSelected field
  - Use constant instead of using "Only fetch is supported" literal 3 times

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
---
(0110683)
caristu   
2019-03-27 13:04   
Reviewed + tested OK.
(0110883)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test
(0110884)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test
(0110895)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test