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:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman_openscap/pull/175 added
Updated by Ondřej Pražák over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_openscap|aed50d4d724beef7300ab2d7a527b24d0a2371c7.