Project

General

Profile

Bug #2587

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

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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

Associated revisions

Revision ea5a0127 (diff)
Added by Joseph Magen almost 6 years ago

fixes #2587 - migration to increase varchar length of media.name and other string fields

Revision 1d00a853 (diff)
Added by Joseph Magen almost 6 years ago

fixes #2587 - migration to increase varchar length of media.name and other string fields
(cherry picked from commit ea5a012715ce2112c5d880b8f7562bcbb444e67d)

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Category set to Database

#2 Updated by Joseph Magen almost 6 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Joseph Magen almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF