Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034676Openbravo ERPA. Platformpublic2016-12-02 11:262017-05-29 17:43
JONHM 
AtulOpenbravo 
highmajoralways
closedfixed 
5
 
3.0PR17Q3 
markmm82
Core
No
0034676: It is possible to see prices for list prices for organizations that you don't have access to.
When using the product selector it is possible to see the price of pricelist that belongs to an organization that the role used does not access to.
Using the F&B sample data.
1-Create a new role.
    Org=*
    Access level=Organization
   Org access: REmove all the rows except: España REgion Sur
   Window Access: Sales Order. Editable field=Y.

2-Crea a new user.
   Org=*
  User Roles: the previously created role.

3-Create a priceslit:
  Organization: España Norte
  Sales priceslit =Y
  Create a priceslit version and create the product prices using on the base version "Tarifa de ventas".

3-Create a priceslit:
  Organization: España Surt
  Sales priceslit =Y
  Create a priceslit version and create the product prices using on the base version "Tarifa de ventas".

4-Logout

5-Login with the new user.

6-Create a sales order. Organization = region sur.

7-Create a line. Open the product selector popup.

8-REmove the filters.

*See on the prices list version column that you see rows for norte prices list also.

No tags attached.
depends on feature request 00355903.0PR17Q3 closed vmromanos AD_IsOrgIncluded performance improvements 
related to feature request 0034928 new Triage Platform Base Advance Filterable in Defined Selector Field 
related to defect 0035013 closed AtulOpenbravo Performance issue in Product Selector when applying patch 37676 
Issue History
2016-12-02 11:26JONHMNew Issue
2016-12-02 11:26JONHMAssigned To => platform
2016-12-02 11:26JONHMModules => Core
2016-12-02 11:26JONHMResolution time => 1481842800
2016-12-02 11:26JONHMTriggers an Emergency Pack => No
2016-12-07 09:21alostaleNote Added: 0092156
2016-12-07 09:21alostaleStatusnew => closed
2016-12-07 09:21alostaleResolutionopen => invalid
2016-12-20 12:49egoitzResolution time1481842800 => 1482879600
2016-12-20 12:49egoitzAssigned Toplatform => Triage Finance
2016-12-20 12:49egoitzStatusclosed => new
2016-12-20 12:49egoitzSummaryDefined Role has access to every organization's price lists => It is possible to see prices for list prices for organizations that you don't have access to.
2016-12-20 12:49egoitzDescription Updatedbug_revision_view_page.php?rev_id=14082#r14082
2016-12-20 12:49egoitzSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14084#r14084
2016-12-20 12:49egoitzIssue Monitored: networkb
2016-12-20 12:50egoitzIssue Monitored: maite
2016-12-20 12:52egoitzNote Deleted: 0092156
2016-12-20 12:56egoitzResolution time1482879600 => 1482793200
2016-12-20 16:00markmm82Assigned ToTriage Finance => AtulOpenbravo
2016-12-20 17:17egoitzResolutioninvalid => open
2016-12-21 15:50markmm82Statusnew => scheduled
2017-01-04 18:15hgbotCheckin
2017-01-04 18:15hgbotNote Added: 0093198
2017-01-04 18:15hgbotStatusscheduled => resolved
2017-01-04 18:15hgbotResolutionopen => fixed
2017-01-04 18:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/34c040a18ce0c1d1c72531210b38f8726fdd3aef [^]
2017-01-04 18:15hgbotCheckin
2017-01-04 18:15hgbotNote Added: 0093199
2017-01-04 18:20markmm82Review Assigned To => markmm82
2017-01-04 18:20markmm82Note Added: 0093202
2017-01-04 18:20markmm82Statusresolved => closed
2017-01-04 18:20markmm82Fixed in Version => 3.0PR17Q1
2017-01-05 08:39vmromanosNote Added: 0093208
2017-01-05 08:39vmromanosStatusclosed => new
2017-01-05 08:39vmromanosResolutionfixed => open
2017-01-05 08:39vmromanosFixed in Version3.0PR17Q1 =>
2017-01-05 14:42hgbotCheckin
2017-01-05 14:42hgbotNote Added: 0093230
2017-01-12 14:30vmromanosRelationship addedrelated to 0034928
2017-01-12 14:37vmromanosStatusnew => scheduled
2017-01-12 14:37vmromanosNote Added: 0093414
2017-01-12 15:14hgbotCheckin
2017-01-12 15:14hgbotNote Added: 0093418
2017-01-12 15:14hgbotStatusscheduled => resolved
2017-01-12 15:14hgbotResolutionopen => fixed
2017-01-12 15:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/34c040a18ce0c1d1c72531210b38f8726fdd3aef [^] => http://code.openbravo.com/erp/devel/pi/rev/0084ae9c0c18835ee16ede128b9cbe8eb5a072e7 [^]
2017-01-12 15:14hgbotCheckin
2017-01-12 15:14hgbotNote Added: 0093419
2017-01-12 15:17markmm82Note Added: 0093420
2017-01-12 15:17markmm82Statusresolved => closed
2017-01-12 15:17markmm82Fixed in Version => 3.0PR17Q2
2017-01-19 17:40JONHMRelationship addedrelated to 0035013
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095063
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095064
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095068
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095089
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095090
2017-03-21 14:44markmm82Resolution time1482793200 =>
2017-03-21 14:44markmm82Fixed in Version3.0PR17Q2 =>
2017-03-21 14:46markmm82Statusclosed => new
2017-03-21 14:46markmm82Resolutionfixed => open
2017-03-21 14:55hgbotCheckin
2017-03-21 14:55hgbotNote Added: 0095472
2017-03-22 01:01hudsonbotCheckin
2017-03-22 01:01hudsonbotNote Added: 0095493
2017-03-22 01:01hudsonbotCheckin
2017-03-22 01:01hudsonbotNote Added: 0095494
2017-03-22 10:32vmromanosRelationship addeddepends on 0035590
2017-03-27 13:29maiteResolution time => 1506808800
2017-03-27 13:31vmromanosNote Added: 0095586
2017-03-27 13:31vmromanosAssigned ToAtulOpenbravo => vmromanos
2017-03-27 13:31vmromanosStatusnew => acknowledged
2017-03-31 10:18vmromanosStatusacknowledged => scheduled
2017-03-31 10:18vmromanosNote Added: 0095750
2017-03-31 10:18vmromanosAssigned Tovmromanos => AtulOpenbravo
2017-04-10 14:50hgbotCheckin
2017-04-10 14:50hgbotNote Added: 0095944
2017-04-10 14:50hgbotStatusscheduled => resolved
2017-04-10 14:50hgbotResolutionopen => fixed
2017-04-10 14:50hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/0084ae9c0c18835ee16ede128b9cbe8eb5a072e7 [^] => http://code.openbravo.com/erp/devel/pi/rev/6026736637ce1ebf1a40e016962394aab4513ad5 [^]
2017-04-10 14:51hgbotCheckin
2017-04-10 14:51hgbotNote Added: 0095945
2017-04-10 14:55aferrazNote Added: 0095947
2017-04-10 14:55aferrazStatusresolved => closed
2017-04-10 14:55aferrazFixed in Version => 3.0PR17Q3
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096881
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096882

Notes
(0093198)
hgbot   
2017-01-04 18:15   
Repository: erp/devel/pi
Changeset: 34c040a18ce0c1d1c72531210b38f8726fdd3aef
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Dec 22 22:54:41 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/34c040a18ce0c1d1c72531210b38f8726fdd3aef [^]

Fixes Issue 34676:It is possible to see prices for list prices for
organizations that you don't have access to.

Problem is Organization property of Product Price in the Product Price By
Warehouse view is not checked whether it appears in Natural Tree of the
Current Logged in Organization.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0093199)
hgbot   
2017-01-04 18:15   
Repository: erp/devel/pi
Changeset: ca851ae75852b1f793f9f1495a8cd59bd5b82574
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Dec 22 13:22:46 2016 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/ca851ae75852b1f793f9f1495a8cd59bd5b82574 [^]

Related to issue 34676: Code review improvements

Reordered conditions in where clause.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0093202)
markmm82   
2017-01-04 18:20   
Code review + Testing OK
(0093208)
vmromanos   
2017-01-05 08:39   
Reopen because this solution might not properly resolve the issue.
Changesets must be reverted from PI
(0093230)
hgbot   
2017-01-05 14:42   
Repository: erp/devel/pi
Changeset: f1b037bcb10e79cab69b771b846fbbbcb4958a83
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Jan 05 08:28:23 2017 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/f1b037bcb10e79cab69b771b846fbbbcb4958a83 [^]

Related to issue 34676: Backout changes 34c040a18ce0

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0093414)
vmromanos   
2017-01-12 14:37   
Reported feature request 0034928. Meanwhile it's implemented, let's fix this issue with the "where clause" modification.
(0093418)
hgbot   
2017-01-12 15:14   
Repository: erp/devel/pi
Changeset: 0084ae9c0c18835ee16ede128b9cbe8eb5a072e7
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Dec 22 22:54:41 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/0084ae9c0c18835ee16ede128b9cbe8eb5a072e7 [^]

Fixes Issue 34676:It is possible to see prices for list prices for
organizations that you don't have access to.

Problem is Organization property of Product Price in the Product Price By
Warehouse view is not checked whether it appears in Natural Tree of the
Current Logged in Organization.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0093419)
hgbot   
2017-01-12 15:14   
Repository: erp/devel/pi
Changeset: 84bb5e88ab9bec96baa061b5a84476734ca49b7b
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Dec 22 13:22:46 2016 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/84bb5e88ab9bec96baa061b5a84476734ca49b7b [^]

Related to issue 34676: Code review improvements

Reordered conditions in where clause.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0093420)
markmm82   
2017-01-12 15:17   
Code review + Testing OK
(0095063)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095064)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095068)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095089)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095090)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095472)
hgbot   
2017-03-21 14:55   
Repository: erp/devel/pi
Changeset: 6a49dfd6cb00f251606f1fd2608b792ca97b0e9b
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Mar 20 10:56:06 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/6a49dfd6cb00f251606f1fd2608b792ca97b0e9b [^]

Related to issue 34676: Backed out changeset 0084ae9c0c18.

Reverts changes of issue 34676 that creates the performance problem
described in regression 35013. It allow to see other pricelists in the selector.

In 17Q3 version will be improved the AD_ISORGINCLUDED function and then this solution
will be evaluated again.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0095493)
hudsonbot   
2017-03-22 01:01   
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/f76f24f98700 [^]
Maturity status: Test
(0095494)
hudsonbot   
2017-03-22 01:01   
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/f76f24f98700 [^]
Maturity status: Test
(0095586)
vmromanos   
2017-03-27 13:31   
Pending to be tested with AD_IsOrgIncluded performance refactor
(0095750)
vmromanos   
2017-03-31 10:18   
It is confirmed the fix is correct from a performance point of view, specially when applied with the AD_IsOrgIncluded performance refactor (0035590).

The issue is scheduled again and will be included in 3.0PR17Q3 when 0035590 is closed
(0095944)
hgbot   
2017-04-10 14:50   
Repository: erp/devel/pi
Changeset: 6026736637ce1ebf1a40e016962394aab4513ad5
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Dec 22 22:54:41 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/6026736637ce1ebf1a40e016962394aab4513ad5 [^]

Fixes Issue 34676:It is possible to see prices for list prices for
organizations that you don't have access to.

Problem is Organization property of Product Price in the Product Price By
Warehouse view is not checked whether it appears in Natural Tree of the
Current Logged in Organization.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0095945)
hgbot   
2017-04-10 14:51   
Repository: erp/devel/pi
Changeset: a79fdd227e3add50d95e02657290ef85651413d2
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Dec 22 13:22:46 2016 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/a79fdd227e3add50d95e02657290ef85651413d2 [^]

Related to issue 34676: Code review improvements

Reordered conditions in where clause.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0095947)
aferraz   
2017-04-10 14:55   
Reapply fix once 0035590 has been closed.
(0096881)
hudsonbot   
2017-05-29 17:43   
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/1ee70113bdc4 [^]
Maturity status: Test
(0096882)
hudsonbot   
2017-05-29 17:43   
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/1ee70113bdc4 [^]
Maturity status: Test