Bug 172461 - API allows user to subscribe system to incompatible base channel
Summary: API allows user to subscribe system to incompatible base channel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 410
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jesus M. Rodriguez
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks: 172725
TreeView+ depends on / blocked
 
Reported: 2005-11-04 21:10 UTC by Beth Nackashi
Modified: 2007-06-20 18:05 UTC (History)
1 user (show)

Fixed In Version: rhn410
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-19 18:50:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Beth Nackashi 2005-11-04 21:10:19 UTC
Description of problem:
It is possible to use ~svn/qa/api_test/test_system.set_base_channel.pl to set a
system to a base channel (not necessarily custom) of an incompatible architecture.

For example:
perl test_system.set_base_channel.pl --user APInormal --channel 2897 --target
1005867575
Success: 1

decoder ring:
channel 2897 is Red Hat Enterprise Linux AS (v. 4 for 31-bit IBM S/390)
system 1005867575 is test07.rhndev, which is an i386 box
host is webqa (not shown, that's set in the script)

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.  Register a system to a hosted environment
2.  Use the API (~svn/qa/api_test/test_system.set_base_channel.pl) to subscribe
the system to an incompatible base channel as shown in the description.
  
Actual results:
success

Expected results:
this should not be allowed

Additional info:

Comment 1 Beth Nackashi 2005-11-04 21:20:03 UTC
also, a similar "success" occurs for child channels using the set_base_channel
script ... if it matters.

[bnackash@rhino api_test]$ perl test_system.set_base_channel.pl --user APInormal
--channel 4073 --target 1005867575
Success: 1

channel 4073 is child channel Red Hat Application Server v. 2 (AS v. 4 for ppc)

However, the web UI just says "none" for the base channel.

Comment 3 Brandon Perkins 2006-06-14 17:16:22 UTC
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: API allows user to subscribe system to incompatible base channel


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172461


bnackash changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          QAContact|bnackash         |bperkins




-- Configure bugmail:
https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email ------- You are
receiving this mail because: ------- You are the QA contact for the bug, or are
watching the QA contact. 

Comment 4 Brandon Perkins 2006-06-16 21:21:32 UTC
Verified.  Results:

$ ./test_system.set_base_channel.pl --user bdperkin --channel 109 --target
1000010002 
Fault returned from XML RPC Server, fault code -211: Invalid channel


Comment 5 Beth Nackashi 2006-07-19 18:50:31 UTC
moving to closed - currentrelease


Note You need to log in before you can comment on or make changes to this bug.