Bug #4290

User Groups name length does not have a max length in UI

Added by Blair Morrison almost 4 years ago. Updated almost 4 years ago.

Assigned To:-
Target version:Sprint 21
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.0Release relationshipAuto


When creating a User Group in the foreman UI, there is not a maximum length indicated for the name.
Instead, it will allow names up to 255 chars long. Any name longer than 255 receives this error after clicking submit:

PGError: ERROR: value too long for type character varying(255) : INSERT INTO "usergroups" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
app/controllers/usergroups_controller.rb:12:in `create'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Associated revisions

Revision e0a653b6
Added by Alissa Bonas almost 4 years ago

fixes #4290 add validation for user group max name length of 255


#1 Updated by Dominic Cleal almost 4 years ago

  • Category set to Rails

#2 Updated by Dominic Cleal almost 4 years ago

  • Status changed from New to Ready For Testing
  • Target version set to Sprint 20

#3 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 20 to Sprint 21

#4 Updated by Dominic Cleal almost 4 years ago

  • Release set to 1.5.0

#5 Updated by Anonymous almost 4 years ago

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

Also available in: Atom PDF