Bug 695880

Summary: Deleting multiple selected users fails
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: Core UIAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0.Beta2CC: hrupp, mazz, skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-02 07:19:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 730796    
Attachments:
Description Flags
stack trace none

Description Jay Shaughnessy 2011-04-12 20:57:00 UTC
There are some extra steps in here, maybe, but I can't always get it to happen - these seem to have the best chance.

1) Create at least three new users

2) logout/login

3) nav back to admin-users

4) Select all the new users

5) click Delete button

An uncaught exception is sometimes thrown and the list gets stuck in refresh mode.  Looking at the message center I see two successful deletes followed by the exception. Although, all three users have been deleted.

The unpleasant stack is attached.

Comment 1 Jay Shaughnessy 2011-04-12 20:59:50 UTC
Created attachment 491586 [details]
stack trace

Comment 2 John Mazzitelli 2011-08-23 17:45:50 UTC
this is still a problem. I replicated on the first try.

I see this in the stack (these are just the org.rhq related stack entries)

    at Unknown.org_rhq_enterprise_gui_coregui_client_util_RPCDataSource_$processResponse__Lorg_rhq_enterprise_gui_coregui_client_util_RPCDataSource_2Ljava_lang_String_2Lcom_smartgwt_client_data_DSResponse_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_util_RPCDataSource_$sendSuccessResponse__Lorg_rhq_enterprise_gui_coregui_client_util_RPCDataSource_2Lcom_smartgwt_client_data_DSRequest_2Lcom_smartgwt_client_data_DSResponse_2Lcom_smartgwt_client_data_Record_2Lorg_rhq_enterprise_gui_coregui_client_util_message_Message_2Ljava_lang_String_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_util_RPCDataSource_$sendSuccessResponse__Lorg_rhq_enterprise_gui_coregui_client_util_RPCDataSource_2Lcom_smartgwt_client_data_DSRequest_2Lcom_smartgwt_client_data_DSResponse_2Ljava_lang_Object_2Lorg_rhq_enterprise_gui_coregui_client_util_message_Message_2Ljava_lang_String_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_admin_users_UsersDataSource$4_$onSuccess__Lorg_rhq_enterprise_gui_coregui_client_admin_users_UsersDataSource$4_2Ljava_lang_Void_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_admin_users_UsersDataSource$4_onSuccess__Ljava_lang_Object_2V(Unknown source:0)

Comment 3 John Mazzitelli 2011-08-23 17:49:16 UTC
this datasource uses the org.rhq.enterprise.gui.coregui.client.util.RPCDataSource.executeRemove(Record, DSRequest, DSResponse) API

I don't know of anywhere else in the GWT app that we use this. So it doesn't surprise me that this is broken. We might want to consider refactoring this to use the standard pattern we use for CRUD operations in tables.

Comment 4 John Mazzitelli 2011-08-23 20:03:46 UTC
master commit 0063754

Comment 5 Sunil Kondkar 2011-08-24 09:23:44 UTC
Verified on build#334 Version: 4.1.0-SNAPSHOT Build Number: d686a21)

Created 3 users, logged out and after relogin, selected those 3 users in Administration-Users. Clicking on Delete button deleted all the three users and it displays the user list screen. No exception is observed.

Marking as verified.

Comment 6 Heiko W. Rupp 2013-09-02 07:19:29 UTC
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.