Project

General

Profile

Actions

Bug #6658

closed

creating compute resource with name more than 245 chars fails

Added by Ori Rabin over 10 years ago. Updated over 10 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1120271
Description of problem:

Creating a compute resource name with 245 chars fails with the below error.

PGError: ERROR: value too long for type character varying(255) : INSERT INTO "compute_resources" ("attrs", "created_at", "description", "name", "password", "type", "updated_at", "url", "user", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"

I believe the actual limit is 255 chars and anything from 256 chars should fail.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
compute resource name with 245 chars fails

Expected results:

compute resource name with upto 255 chars should be possible.
Additional info:


Related issues 4 (0 open4 closed)

Related to Foreman - Bug #6712: PGError when media name exceeds 255 charactersDuplicateOri Rabin07/22/2014Actions
Related to Foreman - Bug #6636: Audit log field too small - PGError while creating OS with 255 characters in nameClosedOri Rabin07/16/2014Actions
Related to Foreman - Bug #4153: Model validation errorDuplicateOri Rabin01/21/2014Actions
Is duplicate of Foreman - Bug #6694: PGError: while creating OS with long (greater than 5 chars) minor/major version valuesClosedOri Rabin07/20/2014Actions
Actions

Also available in: Atom PDF