Project

General

Profile

Actions

Bug #2587

closed

create media fails because ERROR: value too long for type character varying(50)

Added by Joseph Magen almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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)

https://bugzilla.redhat.com/show_bug.cgi?id=968558

Actions

Also available in: Atom PDF