Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030204Openbravo ERPA. Platformpublic2015-06-18 14:132015-08-20 23:16
alostale 
caristu 
urgentmajorN/A
closedfixed 
5
 
3.0PR15Q43.0PR15Q4 
alostale
Core
No
0030204: prevent unpaged datsource request from manual sources
Starting from 3.0PR14Q3, unpaged requests to datasource are logged as warning if coming from manual sources and completely prevented if they come from a grid.

By default they should be prevented even if coming from manual sources, and only optionally allow them
-
Performance
related to defect 00266833.0PR14Q3 closed alostale prevent unpaged datasource requests 
related to feature request 0032039 closed caristu Add generic mechanism to have multiple cached preferences 
related to defect 0034499 closed caristu [clustering] CachedPreference feature is not supported on clustered environments 
Issue History
2015-06-18 14:13alostaleNew Issue
2015-06-18 14:13alostaleAssigned To => platform
2015-06-18 14:13alostaleModules => Core
2015-06-18 14:13alostaleTriggers an Emergency Pack => No
2015-06-18 14:13alostaleRelationship addedhas duplicate 0026683
2015-06-18 14:13alostaleStatusnew => acknowledged
2015-07-22 09:42alostaleAssigned Toplatform => caristu
2015-07-22 09:42alostaleTag Attached: Performance
2015-07-22 09:43alostaleRelationship replacedrelated to 0026683
2015-07-23 12:26hgbotCheckin
2015-07-23 12:26hgbotNote Added: 0079041
2015-07-31 14:07caristuReview Assigned To => alostale
2015-07-31 14:07caristuIssue Monitored: alostale
2015-07-31 14:07hgbotCheckin
2015-07-31 14:07hgbotNote Added: 0079148
2015-07-31 14:07hgbotStatusacknowledged => resolved
2015-07-31 14:07hgbotResolutionopen => fixed
2015-07-31 14:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5bdafea397d73e01e0841273db10a717791d0bc0 [^]
2015-07-31 14:35hgbotCheckin
2015-07-31 14:35hgbotNote Added: 0079150
2015-07-31 16:05hgbotCheckin
2015-07-31 16:05hgbotNote Added: 0079151
2015-07-31 18:12hgbotCheckin
2015-07-31 18:12hgbotNote Added: 0079153
2015-08-04 09:28hgbotCheckin
2015-08-04 09:28hgbotNote Added: 0079168
2015-08-04 11:13hgbotCheckin
2015-08-04 11:13hgbotNote Added: 0079169
2015-08-04 12:33hgbotCheckin
2015-08-04 12:33hgbotNote Added: 0079180
2015-08-04 15:37hgbotCheckin
2015-08-04 15:37hgbotNote Added: 0079188
2015-08-06 09:54alostaleRelationship addedcauses 0030505
2015-08-06 09:55alostaleRelationship deletedcauses 0030505
2015-08-07 08:45alostaleNote Added: 0079240
2015-08-07 08:45alostaleStatusresolved => closed
2015-08-07 08:45alostaleFixed in Version => 3.0PR15Q4
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079505
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079513
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079514
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079515
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079516
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079517
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079518
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079520
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079524
2016-01-28 12:54caristuRelationship addedrelated to 0032039
2016-11-14 17:07caristuRelationship addedrelated to 0034499

Notes
(0079041)
hgbot   
2015-07-23 12:26   
Repository: erp/devel/pi
Changeset: c1e9aa2553bf20bc4ac092b3f711709e23c0ae3b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jul 23 12:25:24 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c1e9aa2553bf20bc4ac092b3f711709e23c0ae3b [^]

Related to issue 30204: applied correct format to DefaultJsonDataService

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0079148)
hgbot   
2015-07-31 14:07   
Repository: erp/devel/pi
Changeset: 5bdafea397d73e01e0841273db10a717791d0bc0
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 31 14:04:15 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5bdafea397d73e01e0841273db10a717791d0bc0 [^]

fixes issue 30204: prevent unpaged datasource request from manual sources


Now the unpaged datasource requests are controlled by the OBJSON_AllowUnpagedDatasourceManualRequest preference. If it is set to N (default) is not possible to perform these kind of requests. They can be enabled by setting this preference to Y.
In order to have a better performance on the datasource when requesting for the preference value, the value of the preference is being cached by the UnpagedRequestCachedPreference class

---
M modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonRestServlet.java
M src-test/src/org/openbravo/test/AllWebserviceTests.java
M src/org/openbravo/erpCommon/businessUtility/Preferences.java
A modules/org.openbravo.client.application/src/org/openbravo/client/application/event/PreferenceEventHandler.java
A modules/org.openbravo.service.json/src-db/database/sourcedata/AD_PREFERENCE.xml
A modules/org.openbravo.service.json/src-db/database/sourcedata/AD_REF_LIST.xml
A modules/org.openbravo.service.json/src/org/openbravo/service/json/UnpagedRequestCachedPreference.java
A src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
---
(0079150)
hgbot   
2015-07-31 14:35   
Repository: erp/devel/pi
Changeset: 22df813f4077182b8176caa40f8f4789fd530916
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 31 14:34:39 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/22df813f4077182b8176caa40f8f4789fd530916 [^]

Related to issue 30204: added missing copyright information

---
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
M src/org/openbravo/erpCommon/businessUtility/Preferences.java
---
(0079151)
hgbot   
2015-07-31 16:05   
Repository: erp/devel/pi
Changeset: 842c4192a953bc52fa794617cd3091dd2b62141b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 31 16:03:50 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/842c4192a953bc52fa794617cd3091dd2b62141b [^]

related to issue 30204: fix for test case

---
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
---
(0079153)
hgbot   
2015-07-31 18:12   
Repository: erp/devel/pi
Changeset: 903256a107c370a52ca07f9da1c112a54f9e6060
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 31 18:11:35 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/903256a107c370a52ca07f9da1c112a54f9e6060 [^]

Related to issue 30204: show the error messages properly when using oracle

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0079168)
hgbot   
2015-08-04 09:28   
Repository: erp/devel/pi
Changeset: 20073455885a52705c40247e064e2daf126cfe43
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Aug 04 09:28:00 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/20073455885a52705c40247e064e2daf126cfe43 [^]

Related to issue 30204: code review improvements

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/PreferenceEventHandler.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/UnpagedRequestCachedPreference.java
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
---
(0079169)
hgbot   
2015-08-04 11:13   
Repository: erp/devel/pi
Changeset: a36c4e3eb5b0d7457bdc1b38faed026b8c595215
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Aug 04 11:12:28 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a36c4e3eb5b0d7457bdc1b38faed026b8c595215 [^]

Related to issue 30204: fix for test case

---
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
---
(0079180)
hgbot   
2015-08-04 12:33   
Repository: erp/devel/pi
Changeset: 753c241b006723174da172eac9073decfbda9de9
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Aug 04 12:32:31 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/753c241b006723174da172eac9073decfbda9de9 [^]

Related to issue 30204: fix for test case

The problem was that default client and organization are null by default, now a check is done to avoid this problem.

---
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
---
(0079188)
hgbot   
2015-08-04 15:37   
Repository: erp/devel/pi
Changeset: d7fa3edf098c2cffa164bd0d30792467e4c5d61f
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Aug 04 15:36:02 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d7fa3edf098c2cffa164bd0d30792467e4c5d61f [^]

Related to issue 30204: new fix for test case

The test case was not working properly when there were not modules in in development status

---
M src-test/src/org/openbravo/test/datasource/TestAllowUnpagedDatasourcePreference.java
R modules/org.openbravo.service.json/src-db/database/sourcedata/AD_PREFERENCE.xml
---
(0079240)
alostale   
2015-08-07 08:45   
code reviewed

tested with manual datasources and json ws (later ones are allowed)
(0079505)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079513)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079514)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079515)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079516)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079517)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079518)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079520)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079524)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test