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 - providing oscap content name more than 255 chars throws error
Summary: providing oscap content name more than 255 chars throws error
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.1.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Ondřej Pražák
QA Contact:
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-08 13:12 UTC by Kedar Bidarkar
Modified: 2019-09-26 18:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 19:57:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12882 0 None None None 2016-04-22 15:35:42 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.