Bug #4752
closedCreating custom product results in candlepin stacktrace
Description
1) login
2) Content -> Products -> Create Repository
3) Try to create a yum based repository, hit save
4) Note error:
Processing by Katello::Api::V2::RepositoriesController#create as JSON
Parameters: {"product_id"=>"91", "unprotected"=>true, "label"=>"repoz", "name"=>"repozzz", "content_type"=>"yum", "url"=>"http://mmccune.fedorapeople.org/repos/demo/repo-3/", "organization_id"=>"ACME_Corporation", "api_version"=>"v2", "repository"=>{"name"=>"repozzz", "label"=>"repoz", "unprotected"=>true, "content_type"=>"yum", "product_id"=>"91"}}
Katello::Resources::Candlepin::Environment: 500 Internal Server Error {"displayMessage":"Runtime Error Could not execute JDBC batch update at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError:2,598","requestUuid":"7626c798-cf0c-40b3-9265-695f6eac558a"} (POST /candlepin/environments/1/content) (RestClient::InternalServerError)
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `block in transmit'
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start'