Bug 794089 (JBEPP-1155) - Infinite loop when edit banner portlet with invalid value
Summary: Infinite loop when edit banner portlet with invalid value
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1155
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.0.DEV03
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.2.0.ER01
Assignee: Thomas Heute
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-09 09:32 UTC by Michal Vanco
Modified: 2013-04-30 23:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
EPP5.2.0 DEV03
Last Closed: 2011-09-09 14:18:45 UTC
Type: Bug


Attachments (Terms of Use)
epp52.jps (431.33 KB, application/octet-stream)
2011-09-09 09:34 UTC, Michal Vanco
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-2088 0 Major Resolved Infinite loop when edit banner portlet with invalid value 2015-06-04 01:54:25 UTC
Red Hat Issue Tracker JBEPP-1155 0 Critical Closed Infinite loop when edit banner portlet with invalid value 2015-06-04 01:54:26 UTC

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



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