Bug 678386 - create role form needs value too long check
Summary: create role form needs value too long check
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
Assignee: Scott Seago
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-17 19:01 UTC by Dave Johnson
Modified: 2012-01-26 12:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-17 19:02:50 UTC
Embargoed:


Attachments (Terms of Use)
error in ui (43.64 KB, image/png)
2011-02-17 19:01 UTC, Dave Johnson
no flags Details

Description Dave Johnson 2011-02-17 19:01:02 UTC
Created attachment 479378 [details]
error in ui

Create a role with a name >255 characters and a PGError is thrown

ActiveRecord::StatementInvalid (PGError: ERROR:  value too long for type character varying(255)
: INSERT INTO "roles" ("name", "scope", "assign_to_owner", "created_at", "updated_at", "lock_version") VALUES('auto_yupl5dfkkl0mqqiuuc0b1qiva7ke3jilp06a1kbxijycfrtnewvivhr4np9ua63dzyitv0zvdj5x1qlpg2tt48bzuit24n7jywdlsjzcdabts4dd08vz0f40493q6rptxh3aebbmre6b152yzxm1aibfij4n3pe2ndxu1lyolaxkfk0g7677moo96rrdcc6uu963p9ha9rtgwz7fl9xgxjqwdpcv00dhp4u2ovcshglidl7vlqlibhnmkmb', 'BasePermissionObject', 'f', '2011-02-17 16:56:44.060167', '2011-02-17 16:56:44.060167', 0) RETURNING "id"):
  app/controllers/admin/roles_controller.rb:26:in `create'
  compass (0.10.4) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  thin (1.2.5) lib/thin/connection.rb:76:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:74:in `catch'
  thin (1.2.5) lib/thin/connection.rb:74:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:57:in `process'
  thin (1.2.5) lib/thin/connection.rb:42:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.2.5) lib/thin/backends/base.rb:57:in `start'
  thin (1.2.5) lib/thin/server.rb:156:in `start'
  thin (1.2.5) lib/thin/controllers/controller.rb:80:in `start'
  thin (1.2.5) lib/thin/runner.rb:177:in `send'
  thin (1.2.5) lib/thin/runner.rb:177:in `run_command'
  thin (1.2.5) lib/thin/runner.rb:143:in `run!'
  thin (1.2.5) bin/thin:6
  /usr/bin/thin:19:in `load'
  /usr/bin/thin:19

Comment 1 Dave Johnson 2011-02-17 19:02:50 UTC
sorry for the spam, I already wrote this one up in bug 674661

*** This bug has been marked as a duplicate of bug 674661 ***

Comment 2 wes hayutin 2011-12-08 14:14:20 UTC
perm close


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