Project

General

Profile

Actions

Bug #12882

closed

providing oscap content name more than 255 chars throws error

Added by Bryan Kearney over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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:

Actions #1

Updated by The Foreman Bot almost 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
Actions #2

Updated by Ondřej Pražák almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF