Description of problem: When I attempt to clone a channel and set label of new channel same as original channel have, I get an ISE. On Oracle DB backend I get nice error message, on PostgreSQL I get ISE. Version-Release number of selected component (if applicable): spacewalk-html-1.8.19-1.el5 How reproducible: always Steps to Reproduce: 1. Clone channel, set label to label of original channel Actual results: [Tue Jun 26 11:08:14 2012] [error] Execution of /var/www/html/network/software/channels/manage/edit.pxt failed at Tue Jun 26 11:08:14 2012: RHN::Exception: DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "rhn_channel_label_uq"\n\n RHN::DB /usr/lib/perl5/vendor_perl/5.8.8/RHN/DB.pm 121 RHN::Exception::DB::throw\n RHN::DB::Channel /usr/lib/perl5/vendor_perl/5.8.8/RHN/DB/Channel.pm 111 RHN::DB::handle_error\n Sniglets::ChannelEditor /usr/lib/perl5/vendor_perl/5.8.8/Sniglets/ChannelEditor.pm 256 RHN::DB::Channel::commit\n Sniglets::ChannelEditor /usr/lib/perl5/vendor_perl/5.8.8/Sniglets/ChannelEditor.pm 227 (eval)\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 482 Sniglets::ChannelEditor::channel_edit_cb\n PXT::Request /usr/lib/perl5/vendor_perl/5.8.8/PXT/Request.pm 548 PXT::ApacheHandler::pxt_parse_data\n PXT::Handlers /usr/lib/perl5/vendor_perl/5.8.8/PXT/Handlers.pm 115 PXT::Request::include\n PXT::Parser /usr/lib/perl5/vendor_perl/5.8.8/PXT/Parser.pm 141 PXT::Handlers::pxt_include_handler\n PXT::Parser /usr/lib/perl5/vendor_perl/5.8.8/PXT/Parser.pm 72 PXT::Parser::expand_tag\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 456 PXT::Parser::expand_tags\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 103 PXT::ApacheHandler::pxt_parse_data\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 103 (eval)\n main -e 0 PXT::ApacheHandler::handler\n main -e 0 (eval) [Tue Jun 26 11:08:15 2012] [error] Traceback sent to root@localhost at /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm line 563. Expected results: Nice error message saying I should use label which is not used. Additional info: Discovered by: From: Patrick Hurrelmann <patrick.hurrelmann> To: spacewalk-list Subject: [Spacewalk-list] Clone of channel with identical label fails with error 500 Date: Fri, 22 Jun 2012 11:14:08 +0200
Fixed in spacewalk nightly by commit 132014256505817da37019a1f21c787177dfdc36 835608 - error messages in PostgreSQL have different pattern
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18