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.
Description of problem:
The UI throws, the below error message.
Error
PGError: ERROR: value too long for type character varying(255) : INSERT INTO "puppetclasses" ("created_at", "global_class_params_count", "hostgroups_count", "hosts_count", "lookup_keys_count", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"
tail -f /var/log/foreman/production.log
Processing by PuppetclassesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZUu7JwWwi9oIxqW9tXw7OONp9Ea54Y8MF2gfGMFOcjc=", "puppetclass"=>{"name"=>"ffffffffffffffffffffffffffffffffffddddddddddddddddddddhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhggggggggggggggggggggggggbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgggggggggggggggggggggggggggggggggggggggggggggggggggggggyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyypppppppppppppppppppppppppppppppppppmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "hostgroup_ids"=>[""], "lookup_keys_attributes"=>{"new_lookup_keys"=>{"_destroy"=>"false", "key"=>"", "description"=>"", "key_type"=>"string", "default_value"=>"[FILTERED]", "validator_type"=>"", "path"=>"fqdn\r\nhostgroup\r\nos\r\ndomain", "lookup_values_attributes"=>"[FILTERED]"}}}, "commit"=>"Submit"}
Operation FAILED: PGError: ERROR: value too long for type character varying(255)
: INSERT INTO "puppetclasses" ("created_at", "global_class_params_count", "hostgroups_count", "hosts_count", "lookup_keys_count", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"
Rendered common/500.html.erb within layouts/application (15.1ms)
Rendered layouts/base.html.erb (3.3ms)
Completed 500 Internal Server Error in 71ms (Views: 24.5ms | ActiveRecord: 6.7ms)
Version-Release number of selected component (if applicable):
sat6-GA-snap3
How reproducible:
always
Steps to Reproduce:
1.
2.
3.
Actual results:
UI throws the PGError as mentioned above.
Expected results:
The PGError needs to be handled gracefully when more than 256 chars are used.
Additional info:
Description of problem: The UI throws, the below error message. Error PGError: ERROR: value too long for type character varying(255) : INSERT INTO "puppetclasses" ("created_at", "global_class_params_count", "hostgroups_count", "hosts_count", "lookup_keys_count", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" tail -f /var/log/foreman/production.log Processing by PuppetclassesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZUu7JwWwi9oIxqW9tXw7OONp9Ea54Y8MF2gfGMFOcjc=", "puppetclass"=>{"name"=>"ffffffffffffffffffffffffffffffffffddddddddddddddddddddhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhggggggggggggggggggggggggbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgggggggggggggggggggggggggggggggggggggggggggggggggggggggyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyypppppppppppppppppppppppppppppppppppmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "hostgroup_ids"=>[""], "lookup_keys_attributes"=>{"new_lookup_keys"=>{"_destroy"=>"false", "key"=>"", "description"=>"", "key_type"=>"string", "default_value"=>"[FILTERED]", "validator_type"=>"", "path"=>"fqdn\r\nhostgroup\r\nos\r\ndomain", "lookup_values_attributes"=>"[FILTERED]"}}}, "commit"=>"Submit"} Operation FAILED: PGError: ERROR: value too long for type character varying(255) : INSERT INTO "puppetclasses" ("created_at", "global_class_params_count", "hostgroups_count", "hosts_count", "lookup_keys_count", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" Rendered common/500.html.erb within layouts/application (15.1ms) Rendered layouts/base.html.erb (3.3ms) Completed 500 Internal Server Error in 71ms (Views: 24.5ms | ActiveRecord: 6.7ms) Version-Release number of selected component (if applicable): sat6-GA-snap3 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: UI throws the PGError as mentioned above. Expected results: The PGError needs to be handled gracefully when more than 256 chars are used. Additional info: