Uploaded image for project: 'JBoss Enterprise Portal Platform'
  1. JBoss Enterprise Portal Platform
  2. JBEPP-1155

Infinite loop when edit banner portlet with invalid value

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.0.DEV03
    • Fix Version/s: 5.2.0.ER01
    • Component/s: Portal
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • 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
      Show
      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
    • Release Notes Docs Status:
      Not Required
    • NEEDINFO:
      Nobody

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  theute Thomas Heute
                  Reporter:
                  mvanco Michal Vanco
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: