Bug 1289571

Summary: providing oscap content name more than 255 chars throws error
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: SCAP PluginAssignee: Ondřej Pražák <oprazak>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1.5CC: bkearney, ehelms, kbidarka
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/12882
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 19:57:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kedar Bidarkar 2015-12-08 13:12:40 UTC
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:

Comment 2 Bryan Kearney 2015-12-18 20:41:06 UTC
Created redmine issue http://projects.theforeman.org/issues/12882 from this bug

Comment 3 Bryan Kearney 2015-12-21 16:40:59 UTC
Is this the same as https://bugzilla.redhat.com/show_bug.cgi?id=1289571

Comment 4 Kedar Bidarkar 2016-01-13 09:48:50 UTC
Looks like the bug in comment3 is pointing to this bug itself. May be you wanted to refer another bug.

Comment 5 Bryan Kearney 2016-02-02 11:14:54 UTC
*** Bug 1293296 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2016-06-22 14:11:02 UTC
Upstream bug assigned to oprazak

Comment 8 Bryan Kearney 2016-06-22 14:11:05 UTC
Upstream bug assigned to oprazak

Comment 9 Bryan Kearney 2016-06-22 20:11:00 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12882 has been closed

Comment 11 Bryan Kearney 2017-08-01 19:57:55 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.