Bug #12882
closedproviding oscap content name more than 255 chars throws error
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1289571
Description of problem:
providing oscap content name more than 255 chars throws error
PGError: ERROR: value too long for type character varying(255) : INSERT INTO "scaptimony_scap_contents" ("created_at", "digest", "original_filename", "scap_file", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
Version-Release number of selected component (if applicable):
Satellite 6.1.4 GA
How reproducible:
Always
Steps to Reproduce:
1. create a new oscap_content and provide name more than 255 chars
2.
3.
Actual results:
providing oscap content name more than 255 chars throws error
Expected results:
providing oscap content name more than 255 chars, should throw "name too long" error instead of DB error.
Additional info: