| Summary: | RFE: Disabling of SCAP result deletion policy resets retention period | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | API | Assignee: | Jan Dobes <jdobes> |
| Status: | CLOSED WONTFIX | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 560 | CC: | tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-09 10:55:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 924189 | ||
It's rather feature than bug. :) Nevertheless if we really want to fix this feature, we need a schema change. This bz is an enhancement to the RFE bz #993079 (tuning of already implemented RFE) Schema change: I see you need to add new char(1) field to rhnOrgConfiguration table. I am sorry guys. I haven't been able to move this forward during last 3 years and I don't envision having time for this in the three years to come. Resetting the assignee to the default. |
Description of problem: Disabling of the scap result deletion policy also resets retention period to the default (90 days). The retention period is being reset either using webui or API. Version-Release number of selected component (if applicable): spacewalk-java-2.0.2-46.el5sat How reproducible: @webUI @API Steps to Reproduce: API: 1. >>> client.org.setPolicyForScapResultDeletion(key, 1, {'retention_period': 15, 'enabled': False}) 1 2. >>> client.org.getPolicyForScapResultDeletion(key,1) {'retention_period': 0, 'enabled': False} WEBUI: 1. Admin -> Organization -> <selected organization> -> Configuration: check Allow Deletion of SCAP Results: [v] and then you can set value of Allow Deletion After (period in days). And hit "Update Organization" button. 2. uncheck Allow Deletion of SCAP Results: [_] and hit "Update Organization" button. 3. In both situations custom value of retention_period/"Allow Deletion After (period in days)" is discarded and replaced by the default one. Actual results: disabling the policy also resets retention period to the default Expected results: when disabling the policy retention period remains the same