Actions
Bug #2587
closedcreate media fails because ERROR: value too long for type character varying(50)
Description
When adding new media via Katello, the following API error occurs:
Started POST "/foreman/api/media" for 127.0.0.1 at 2013-05-29 16:27:15 -0400 Processing by Api::V1::MediaController#create as JSON Parameters: {"medium"=>{"name"=>"sao-paulo/Dev_Env/Published1 RHEL Server 6.4 x86_64", "path"=>"http://SERVER/pulp/repos/sao-paulo/Dev_Env/Published1/content/dist/rhel/server/6/6Server/x86_64/os/", "os_family"=>"Redhat"}} PGError: ERROR: value too long for type character varying(50) : INSERT INTO "media" ("config_path", "created_at", "image_path", "media_path", "name", "os_family", "path", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" (ActiveRecord::StatementInvalid)
Actions