Created attachment 697260[details]
engine.log
Description of problem:
Quota can be created on a DC which has quota disabled. This looks like there is not enough checking what is currently selected DC when opening 'Add' dialog on DC's details subpane -> Quota subtab.
Such created quota is of course not visible on this DC which has quota disabled, and thus it is not possible to delete it without temporarily activating quota on such DC.
Version-Release number of selected component (if applicable):
sf7
How reproducible:
100%
Steps to Reproduce:
1. Have 2 DCs, one with quota disabled (default), other one with audit quota
2. Select the DC with audit quota (in the "tree" you are on 'System' top level)
3. in DC's subpane, select Quota subtab, then click Add and select the DC without quota enabled (in my case I discovered this because disabled DC was first in the list)
Actual results:
1. After adding this quota, the quota appears in the list in Quota subtab for enabled DC even it was created on other one. While changing tabs, the quota disappears from the list. While selecting the DC with disabled quota, you cannot see the quota as there's no Quota subtab.
2. While changing position in the tree to the DC with disabled quota, there's Quota main tab with the created quota
Expected results:
1. Do not offer quota creation on DCs without quota enabled. Make strict checking which DC is selected and change the list of DCs in Add quota dialog (as this action is executed from specifics DC's Quota subtab)
2. Show Quota main tab only for DCs (in tree -> a DC is selected) which have quota enabled.
Additional info:
Created attachment 697262[details]
quota
Default DC selected, 31 DC in the list. In the bottom there's "forgotten" quota created on 31 DC which has quota disabled (although I got this only once).
Created attachment 697260 [details] engine.log Description of problem: Quota can be created on a DC which has quota disabled. This looks like there is not enough checking what is currently selected DC when opening 'Add' dialog on DC's details subpane -> Quota subtab. Such created quota is of course not visible on this DC which has quota disabled, and thus it is not possible to delete it without temporarily activating quota on such DC. Version-Release number of selected component (if applicable): sf7 How reproducible: 100% Steps to Reproduce: 1. Have 2 DCs, one with quota disabled (default), other one with audit quota 2. Select the DC with audit quota (in the "tree" you are on 'System' top level) 3. in DC's subpane, select Quota subtab, then click Add and select the DC without quota enabled (in my case I discovered this because disabled DC was first in the list) Actual results: 1. After adding this quota, the quota appears in the list in Quota subtab for enabled DC even it was created on other one. While changing tabs, the quota disappears from the list. While selecting the DC with disabled quota, you cannot see the quota as there's no Quota subtab. 2. While changing position in the tree to the DC with disabled quota, there's Quota main tab with the created quota Expected results: 1. Do not offer quota creation on DCs without quota enabled. Make strict checking which DC is selected and change the list of DCs in Add quota dialog (as this action is executed from specifics DC's Quota subtab) 2. Show Quota main tab only for DCs (in tree -> a DC is selected) which have quota enabled. Additional info: