Hide Forgot
Created attachment 478074 [details] ss Description of problem: Concurrent user test fails.. deleting objects w/ one user while another user views object Recreate: You will need two browsers using two different sessions to recreate this bug. In my setup I had one chrome browser and one firefox browser logged in as admin 1. in firefox browser, as admin.. create a provider. Click on the provider so you are in the "details" view of the provider 2. in the chrome browser, as admin.. delete the provider. 3. in the firefox browser click on the provider name link or refresh the page.. In the provider details window.. you get.. Internal Server Error Couldn't find Provider with ID=24 privileges.target_type=E'Provider' and privileges.action=E'view')) ) AS id_list ORDER BY id_list.alias_0 LIMIT 1ESC[0m ESC[4;36;1mPermission Load Including Associations (1.0ms)ESC[0m ESC[0;1mSELECT "permissions"."id" AS t0_r0, "permissions"."role_id" AS t0_r1, "permissions"."user_id" AS t0_r2, "permissions"."permission_object_id" AS t0_r3, "permissions"."permission_object_type" AS t0_r4, "permissions"."lock_version" AS t0_r5, "permissions"."created_at" AS t0_r6, "permissions"."updated_at" AS t0_r7, "roles"."id" AS t1_r0, "roles"."name" AS t1_r1, "roles"."scope" AS t1_r2, "roles"."lock_version" AS t1_r3, "roles"."created_at" AS t1_r4, "roles"."updated_at" AS t1_r5, "roles"."assign_to_owner" AS t1_r6, "privileges"."id" AS t2_r0, "privileges"."role_id" AS t2_r1, "privileges"."target_type" AS t2_r2, "privileges"."action" AS t2_r3, "privileges"."lock_version" AS t2_r4, "privileges"."created_at" AS t2_r5, "privileges"."updated_at" AS t2_r6 FROM "permissions" LEFT OUTER JOIN "roles" ON "roles".id = "permissions".role_id LEFT OUTER JOIN "privileges" ON privileges.role_id = roles.id WHERE ("permissions".permission_object_id = 1 AND "permissions".permission_object_type = E'BasePermissionObject' AND (permissions.user_id=1 and privileges.target_type=E'Provider' and privileges.action=E'view')) AND "permissions".id IN (2) ORDER BY permissions.id ASCESC[0m ESC[4;35;1mProvider Load (0.6ms)ESC[0m ESC[0mSELECT * FROM "providers" ESC[0m ESC[4;36;1mProvider Load (0.3ms)ESC[0m ESC[0;1mSELECT * FROM "providers" WHERE ("providers"."id" = 24) ESC[0m ActiveRecord::RecordNotFound (Couldn't find Provider with ID=24): app/controllers/admin/providers_controller.rb:32:in `show' 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' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' Rendering template within layouts/popup Rendering layouts/popup-error ESC[4;35;1mSQL (0.1ms)ESC[0m ESC[0mSET client_min_messages TO 'panic'ESC[0m ESC[4;36;1mSQL (0.1ms)ESC[0m ESC[0;1mSET client_min_messages TO 'notice'ESC[0m
My initial thought on this is that we need to handle that error more gracefully, so this is a valid bug.
adding to the ce-beta blocking tracker
This is no longer applicable. We rescue this globally and display a flash message, rather than raising an exception that's displayed to the end user.
when the provider is deleted in one browser and when we try to click on the deleted provider name link or refresh the page in another browser it displays : "The record you tried to access does not exist, it may have been deleted". Screen shot attached. verified on: [root@dell-pe860-01 ~]# rpm -qa | grep aeolus aeolus-configure-2.0.1-0.el6.20110706084705git542b456.noarch aeolus-conductor-0.3.0-0.el6.20110706142422git0ebf7d1.noarch aeolus-conductor-doc-0.3.0-0.el6.20110706142422git0ebf7d1.noarch aeolus-conductor-daemons-0.3.0-0.el6.20110706142422git0ebf7d1.noarch rubygem-aeolus-cli-0.0.1-1.el6.20110706142422git0ebf7d1.noarch aeolus-all-0.3.0-0.el6.20110706142422git0ebf7d1.noarch
Created attachment 511670 [details] Message displayed
release pending...
perm close
closing out old bugs