Bug 676654

Summary: Concurrent user test fails.. deleting objects w/ one user while another user views object
Product: [Retired] CloudForms Cloud Engine Reporter: wes hayutin <whayutin>
Component: aeolus-conductorAssignee: Matt Wagner <matt.wagner>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: high Docs Contact:
Priority: high    
Version: 0.3.1CC: akarol, athomas, deltacloud-maint, jguiditt, morazi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://10.16.120.123:3000/admin/providers
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 684278    
Attachments:
Description Flags
ss
none
Message displayed none

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