Bug 840917

Summary: deleted user is still displayed in portal configured using JTA
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: vramik
Component: PortalAssignee: mposolda
Status: VERIFIED --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.2.ER02CC: bdawidow, epp-bugs
Target Milestone: ---   
Target Release: 5.2.2.CR01   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 793816    

Description vramik 2012-07-17 15:16:41 UTC
Description of problem:

Deleted user is still displayed in users and groups management.

How reproducible:
Start portal according to configuration of this job: 
https://hudson.qa.jboss.com/hudson/job/epp5_ui_selenium_tests_db_mysql5.5_JTA/

Steps to Reproduce:
1. Open portal and sign in as a root
2. go to New Staff and create user
3. go to Users and Groups management and delete created user
4. click Quick search icon
  
Actual results:
Deleted user is still displayed.

Expected results:
Deleted user shouldn't be displayed.

Additional info:
When you create new user after deleting the previous one, the previous one isn't displayed any more.

Comment 1 mposolda 2012-08-07 14:38:47 UTC
This issue is introduced by fix of https://bugzilla.redhat.com/show_bug.cgi?id=834635. So workaround for this issue is to comment the configuration of TransactionManagerLookup in JBoss cache configuration file gatein.ear/02portal.war/WEB-INF/conf/organization/picketlink-idm/jboss-cache.xml:

<!--<transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossStandaloneJTAManagerLookup" />-->

This is only a workaround, so I won't fix it into EPP_5.2 branch as it can also potentially introduce other regressions in EPP 5.2.2. 

The cause is that IDMUserListAccess added into IntegrationCache is sometimes lost after commit of JTA transaction and old instance of IDMUserListAccess is restored. Proper fix will require further investigation at JBoss Cache level.  

Simple application for test this issue: https://github.com/mposolda/jcr-transaction-test

Comment 2 mposolda 2012-08-13 11:07:41 UTC
Issue is finally fixed by revert of https://bugzilla.redhat.com/show_bug.cgi?id=834635 and commenting of TransactionManagerLookup in JBoss cache configuration file gatein.ear/02portal.war/WEB-INF/conf/organization/picketlink-idm/jboss-cache.xml:

<!--<transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossStandaloneJTAManagerLookup" />-->

Comment 3 vramik 2012-08-27 15:09:54 UTC
Verified again at 5.2.2 CR01