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:
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.
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.
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
moving to closed - currentrelease