Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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.