[Spacewalk-list] Clone of channel with identical label fails with error 500
Paul Robert Marino
prmarino1 at gmail.com
Sat Jun 23 00:21:29 UTC 2012
Was this from the web interface or a command line tool?
Either way it sounds like there is missing input validation.
On Jun 22, 2012 5:23 AM, "Patrick Hurrelmann" <
patrick.hurrelmann at lobster.de> wrote:
> Hi List,
>
> I just was cloning some channels and mistyped the label of one, resulting
> in a duplicate label. This fails with an error 500 (internal server error).
> The error itself is correct for sure but maybe a better handling and a
> better error message is needed?
>
> Stacktrace from admin-mail:
>
> Error message:
> RHN::Exception: DBD::Pg::st execute failed: ERROR: duplicate key value
> violates unique constraint "rhn_channel_label_uq"
> RHN::DB /usr/share/perl5/vendor_perl/**RHN/DB.pm 121
> RHN::Exception::DB::throw
> RHN::DB::Channel /usr/share/perl5/vendor_perl/**RHN/DB/Channel.pm 111
> RHN::DB::handle_error
> Sniglets::ChannelEditor /usr/share/perl5/vendor_perl/**Sniglets/ChannelEditor.pm
> 256 RHN::DB::Channel::commit
> Sniglets::ChannelEditor /usr/share/perl5/vendor_perl/**Sniglets/ChannelEditor.pm
> 227 (eval)
> PXT::ApacheHandler /usr/share/perl5/vendor_perl/**PXT/ApacheHandler.pm
> 482 Sniglets::ChannelEditor::**channel_edit_cb
> PXT::Request /usr/share/perl5/vendor_perl/**PXT/Request.pm 561
> PXT::ApacheHandler::pxt_parse_**data
> PXT::Handlers /usr/share/perl5/vendor_perl/**PXT/Handlers.pm 115
> PXT::Request::include
> PXT::Parser /usr/share/perl5/vendor_perl/**PXT/Parser.pm 141
> PXT::Handlers::pxt_include_**handler
> PXT::Parser /usr/share/perl5/vendor_perl/**PXT/Parser.pm 72
> PXT::Parser::expand_tag
> PXT::ApacheHandler /usr/share/perl5/vendor_perl/**PXT/ApacheHandler.pm
> 456 PXT::Parser::expand_tags
> PXT::ApacheHandler /usr/share/perl5/vendor_perl/**PXT/ApacheHandler.pm
> 103 PXT::ApacheHandler::pxt_parse_**data
> PXT::ApacheHandler /usr/share/perl5/vendor_perl/**PXT/ApacheHandler.pm
> 103 (eval)
> main -e 0 PXT::ApacheHandler::handler
> main -e 0 (eval)
>
> Best regards
> Patrick
>
>
> --
> Lobster LOGsuite GmbH, Hauptstraße 67, D-82327 Tutzing
>
> HRB 178831, Amtsgericht München
> Geschäftsführer: Dr. Martin Fischer, Rolf Henrich
>
> ______________________________**_________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/**mailman/listinfo/spacewalk-**list<https://www.redhat.com/mailman/listinfo/spacewalk-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120622/4f728401/attachment.htm>
More information about the Spacewalk-list
mailing list