Bug 794089 (JBEPP-1155)

Summary: Infinite loop when edit banner portlet with invalid value
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Michal Vanco <mvanco>
Component: PortalAssignee: Thomas Heute <theute>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.DEV03CC: epp-bugs, mvecera
Target Milestone: ---   
Target Release: 5.2.0.ER01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1155
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
EPP5.2.0 DEV03
Last Closed: 2011-09-09 14:18:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
epp52.jps none

Description Michal Vanco 2011-09-09 09:32:50 UTC
Steps to Reproduce: - open browser & portal
- sign in & edit layout
- edit banner portlet - add some invalid value (e.g. url to some image) & save (it's successfully saved)
- close browser
- open browser & portal - you can't access portal anymore
project_key: JBEPP

When you edit banner portlet with invalid value, close & open browser -> you are not able to access portal.
With each refresh it takes another database connection and after 20 attempts you end up with:

13:20:10,748 ERROR [JDBCExceptionReporter] Unable to get managed connection for gatein-idm; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for gatein-idm)

I'm also attaching thread dump where you can see that 20 threads are running in following classes:
at java.util.HashMap.get(HashMap.java:300)
at org.exoplatform.resolver.ApplicationResourceResolver.getResourceResolver(ApplicationResourceResolver.java:70)
at org.exoplatform.webui.application.WebuiRequestContext.getResourceResolver(WebuiRequestContext.java:184)

I think there is problem with while loop in WebuiRequestContext.getResourceResolver method.

Issue was found by automated tests where logo portlet should be edited on dashboard, but edit layout is broken and portal layout is used instead of dashboard layout.
After described steps, cpu is running almost on 100% and it caused my laptop to turn-off due to overheat few times.

Comment 1 Michal Vanco 2011-09-09 09:34:08 UTC
Attaching thread dump when running 21st http request on unavailable portal.

Comment 2 Michal Vanco 2011-09-09 09:34:08 UTC
Attachment: Added: epp52.jps


Comment 3 Michal Vanco 2011-09-09 10:02:42 UTC
Link: Added: This issue relates to GTNPORTAL-2088


Comment 4 Thomas Heute 2011-09-22 07:09:47 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 6 Jared MORGAN 2011-11-28 03:56:45 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Not Required