Bug 793311 (JBEPP-395)

Summary: GTNPORTAL-1362 gatein-jcr and gatein-idm Independence issue - drpping gatein-jcr db brings NPE error when accessing admin portlets.
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Gary Hu <garyhu2>
Component: unspecifiedAssignee: Default User <jbpapp-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.0.GA   
Target Milestone: ---   
Target Release: 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-395
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-12 09:53:23 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gary Hu 2010-07-19 20:51:17 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000003hTGw
project_key: JBEPP

We are running into a situation where the Independence of gatein-jcr and gatein-idm dbs is concerned.

Here is how to reproduce the issue:

1) set up gatein-jcr and gatein-idm using mysql dbs.

2) start the server and create a new user via the UI.

3) stop the server and drop the gatein-jcr db.

4) delete the data/tmp/work folders and restart the server.

5) it's ok to login into the portal using the newly created user account. but if accessing the admin portlets, for example, the OrganizationPortlet, an NPE exception is thrown.

ERROR [org.exoplatform.webui.application.portlet.PortletApplicationController] (http-0.0.0.0-8080-2) Error while rendering the porlet
org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=24],data= boolean userCouldEditPage = uicomponent.hasEditPermissionOnPage();] for template app:/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:162)
       ...
Caused by: java.lang.NullPointerException
at org.exoplatform.toolbar.webui.component.UIAdminToolbarPortlet.hasEditPermissionOnPage(UIAdmi
        ...

Debugging the code shows that the call
       UIPageBody pageBody = uiWorkingWS.findFirstComponentOfType(UIPageBody.class);
always returns null.

Comment 1 Gary Hu 2010-07-19 20:51:43 UTC
Link: Added: This issue depends GTNPORTAL-1362


Comment 2 Martin Weiler 2010-09-13 12:08:04 UTC
Security: Removed: RHT+eXo Added: Public


Comment 3 Martin Weiler 2010-09-13 12:08:39 UTC
Help Desk Ticket Reference: Removed: https://access.redhat.com/issue-tracker/1151743 Added: https://na7.salesforce.com/500A0000003hTGw


Comment 5 Jared MORGAN 2011-11-18 00:52:16 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 6 hfnukal@redhat.com 2012-01-10 16:53:20 UTC
Labels: Added: EPP_5_2_1_Candidate


Comment 8 Thomas Heute 2012-01-12 09:53:23 UTC
Labels: Removed: EPP_5_2_1_Candidate