Bug 676654 - Concurrent user test fails.. deleting objects w/ one user while another user views object
Summary: Concurrent user test fails.. deleting objects w/ one user while another user ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
Assignee: Matt Wagner
QA Contact: wes hayutin
URL: http://10.16.120.123:3000/admin/provi...
Whiteboard:
Depends On:
Blocks: ce-beta
TreeView+ depends on / blocked
 
Reported: 2011-02-10 15:44 UTC by wes hayutin
Modified: 2014-08-17 22:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
ss (30.37 KB, image/png)
2011-02-10 15:44 UTC, wes hayutin
no flags Details
Message displayed (308.69 KB, image/png)
2011-07-07 11:10 UTC, Aziza Karol
no flags Details

Description wes hayutin 2011-02-10 15:44:12 UTC
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

Comment 1 Jason Guiditta 2011-02-10 16:52:32 UTC
My initial thought on this is that we need to handle that error more gracefully, so this is a valid bug.

Comment 2 wes hayutin 2011-03-11 16:59:06 UTC
adding to the ce-beta blocking tracker

Comment 3 Matt Wagner 2011-07-06 15:37:07 UTC
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.

Comment 4 Aziza Karol 2011-07-07 11:09:57 UTC
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

Comment 5 Aziza Karol 2011-07-07 11:10:41 UTC
Created attachment 511670 [details]
Message displayed

Comment 6 wes hayutin 2011-08-01 19:56:40 UTC
release pending...

Comment 7 wes hayutin 2011-08-01 19:58:08 UTC
release pending...

Comment 9 wes hayutin 2011-12-08 13:52:31 UTC
perm close

Comment 10 wes hayutin 2011-12-08 13:55:20 UTC
closing out old bugs


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