Bug 1113349
| Summary: | Entering a very large number for idle_timeout is unchecked, crashes UI | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Corey Welton <cwelton> |
| Component: | WebUI | Assignee: | orabin |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.3 | CC: | dcleal, jmontleo, orabin |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://projects.theforeman.org/issues/6537 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-11 12:27:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Welton
2014-06-26 03:18:45 UTC
"workaround"
[root@cloud-qe-12 ~]# foreman-rake console
Loading production environment (Rails 3.2.8)
irb(main):001:0> Setting.idle_timeout
Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'idle_timeout' ORDER BY name LIMIT 1
=> 99999999999
irb(main):002:0> Setting.idle_timeout = 999
Setting Load (0.5ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'idle_timeout' ORDER BY name LIMIT 1
(0.1ms) BEGIN
Setting Exists (0.3ms) SELECT 1 AS one FROM "settings" WHERE ("settings"."name" = 'idle_timeout' AND "settings"."id" != 17) LIMIT 1
Setting Load (0.6ms) SELECT "settings".* FROM "settings" WHERE "settings"."id" = 17 ORDER BY name LIMIT 1
(0.9ms) SELECT MAX("audits"."version") AS max_id FROM "audits" WHERE "audits"."auditable_id" = 17 AND "audits"."auditable_type" = 'Setting'
SQL (2.5ms) INSERT INTO "audits" ("action", "associated_id", "associated_name", "associated_type", "auditable_id", "auditable_name", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "user_id", "user_type", "username", "version") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["action", "update"], ["associated_id", nil], ["associated_name", nil], ["associated_type", nil], ["auditable_id", 17], ["auditable_name", "idle_timeout"], ["auditable_type", "Setting"], ["audited_changes", "---\nvalue:\n- ! '--- 99999999999\n\n ...\n\n'\n- ! '--- 999\n\n ...\n\n'\n"], ["comment", nil], ["created_at", Thu, 26 Jun 2014 03:15:31 UTC +00:00], ["remote_address", nil], ["user_id", nil], ["user_type", nil], ["username", ""], ["version", 2]]
(0.4ms) UPDATE "settings" SET "value" = '--- 999
...
', "updated_at" = '2014-06-26 03:15:31.316108' WHERE "settings"."category" IN ('Setting::General') AND "settings"."id" = 17
(8.3ms) COMMIT
=> 999
irb(main):003:0> Setting.idle_timeout
Setting Load (18.5ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'idle_timeout' ORDER BY name LIMIT 1
=> 999
irb(main):004:0>
Created redmine issue http://projects.theforeman.org/issues/6537 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/6537 has been closed ------------- Ori Rabin Applied in changeset commit:8e5a869a80fe588fb3b228e74951c30713abc030. Verified in Satellite-6.0.4-RHEL-6-20140723.0 This was delivered with Satellite 6.0 which was released on 10 September 2014. |