Bug 1007998

Summary: Unable to disable activation keys
Product: Red Hat Satellite 5 Reporter: Matej Kollar <mkollar>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED ERRATA QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: high    
Version: 560CC: cperry, dyordano, mzazrivec, xdmoon
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.0.2-49 Doc Type: Bug Fix
Doc Text:
Consequence: WebUI incorrectly showed disabled activation keys as being enabled. Result: WebUI correctly shows activation keys enabled or disabled according to their state.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-12 10:04:37 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 924189    

Description Matej Kollar 2013-09-13 17:50:36 UTC
Description of problem:

   Using activationkey.setDetails to disable looks like successfull,
   but does not work.


Version-Release number of selected component: spacewalk-java-2.0.2-34


How reproducible: always/deterministic

Steps to Reproduce:

  1. Create activation key (will be reated like enabled)
  2. call  activationkey.setDetails(key, label, {'disabled': True})

Actual results: activation key is still enabled.

Expected results: activation key is disabled.

Additional info:

  * I am unable to test transition disabled -> enabled as I am unable to
    obtain disabled activation key
  * Regression against 550

Comment 1 Matej Kollar 2013-09-13 17:53:01 UTC
It is also not possible to change this using WebIU.

Comment 4 Tomas Lestach 2013-09-16 15:40:17 UTC
It looks like only WebUI incorrectly displays the dis/enabled key property. Changes are done in the DB.
Need to check the WebUI selection sync.

Comment 5 Tomas Lestach 2013-09-18 09:23:37 UTC
The bug does not show in Spacewalk. However, here's the fix ...

spacewalk.git: 37c5a382a4f5d152fce0d26bbcf4a0caa341f531

Comment 10 errata-xmlrpc 2013-12-12 10:04:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1827.html