Bug 1211157 - User related data not removed from the JCR tables on user deletion
Summary: User related data not removed from the JCR tables on user deletion
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal
Version: 6.1.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR03
: 6.2.0
Assignee: Peter Palaga
QA Contact: Tomas Kyjovsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-13 08:05 UTC by Martin Weiler
Modified: 2019-07-11 08:56 UTC (History)
2 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-3586 0 Major Resolved User related data not removed from the JCR tables on user deletion 2016-06-01 09:23:49 UTC

Description Martin Weiler 2015-04-13 08:05:34 UTC
Description of problem:
User specific data (user site, aka dashboard) is not removed from the JCR tables when a user is deleted.

Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. Register a new user, log in, access the dashboard
2. User specific data is added to the JCR tables:
DEBUG [org.exoplatform.portal.config.UserPortalConfigListener] (http-127.0.0.1-8080-1) About to create user site for user user6
3. Log in as root, delete the new user

Actual results:
User data remains in the JCR tables

Expected results:
User data removed from the JCR tables again:
DEBUG [org.exoplatform.portal.config.UserPortalConfigListener] (http-127.0.0.1-8080-1) About to destroy user site for user user6


Additional info:
This is caused by a typo in gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml

The following change needs to be applied to have the user data removed from the JCR tables on user deletion:

--- a/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml
+++ b/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml
@@ -245,7 +245,7 @@
       </value-param>
       <value-param>
         <name>destroy.user.portal</name>
-        <value>${gatein.portal.idm.destroyserportal}</value>
+        <value>${gatein.portal.idm.destroyuserportal}</value>
       </value-param>
       <value-param>
         <name>default.import.mode</name>

Comment 1 Peter Palaga 2015-04-21 08:53:10 UTC
https://github.com/gatein/gatein-portal/pull/937 was merged in upstream.

Comment 2 Tomas Kyjovsky 2015-04-27 17:06:06 UTC
DEBUG [org.exoplatform.portal.config.UserPortalConfigListener] (http-/127.0.0.1:8080-1) About to destroy user site for user test
DEBUG [org.exoplatform.portal.config.UserPortalConfigListener] (http-/127.0.0.1:8080-1) About to destroy user site for user test3
DEBUG [org.exoplatform.portal.config.UserPortalConfigListener] (http-/127.0.0.1:8080-1) About to destroy user site for user test2


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