Project

General

Profile

Bug #1755

Foreman with postgre doesn't allow wide URLs for installation meda

Added by Jaroslav Henner almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

PG::Error: ERROR: value too long for type character varying(100) : INSERT INTO "media" ("os_family", "config_path", "created_at", "updated_at", "name", "image_path", "media_path", "path") VALUES ('Redhat', '', '2012-07-16 12:36:15.489468', '2012-07-16 12:36:15.489468', 'RHEL', '', '', 'http://looong.paattthhh.at.corp.com/pub/rhel/fooo/baaar/$major.$minor/Server/$arch/os/') RETURNING "id"

It got fixed after making media.path varying(200). I think more than 200 should be allowed though.


Related issues

Has duplicate Foreman - Bug #1754: Foreman with postgre doesn'Closed2012-07-16

Associated revisions

Revision 3013ebe9 (diff)
Added by Joseph Magen over 6 years ago

fixes #1755 - changed limit on path from 100 to 255

History

#1 Updated by Joseph Magen over 6 years ago

  • Status changed from New to Resolved

I created a migration and changed the limit for 100 to 255

#2 Updated by Ohad Levy over 6 years ago

  • Category set to DB migrations
  • Assignee set to Joseph Magen
  • Priority changed from High to Normal
  • Target version set to 1.1

Also available in: Atom PDF