Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-54480

Infinite redirect loops when accessing Confluence

    XMLWordPrintable

Details

    Description

      In some tests, we're seeing intermittent stack overflows in HTML unit seemingly caused by cyclical redirects.
      The affects the CI build, on trunk and the 103 branch.

      Examples:
      https://bamboo.extranet.atlassian.com/browse/JST-JST103-56
      https://bamboo.extranet.atlassian.com/browse/JST-JST103-61
      https://bamboo.extranet.atlassian.com/browse/JST-AOD-124

      Some of the tests that have failed in this way:

      TestStudioProjectUpdate.setUp
      TestStudioTabs.testAdminTabsChange
      TestStudioTabs.testNavbarTabsChange
      SimpleGroupSetup.setUpAllAndAddBMW

      TestRestSecurity.setUp
      TestStreams.testFeedAvailable
      TestTrustedAppsSetup.setUp

      TestConfluenceHistory.beforeMethod
      TestCrowdNotifier.setUp
      TestCustomTabs.setUp
      TestProjectKeyTranslation.setUp
      TestRepositoryManager.setUp
      TestQuickNav.setUp

      Typical stacktrace:

      java.lang.StackOverflowError
      	at java.lang.Exception.<init>(Exception.java:41)
      	at java.io.IOException.<init>(IOException.java:41)
      	at java.io.InterruptedIOException.<init>(InterruptedIOException.java:45)
      	at java.net.SocketTimeoutException.<init>(SocketTimeoutException.java:24)
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.read(SocketInputStream.java:129)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      	at org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:505)
      	at org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430)
      	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.closeIfStale(MultiThreadedHttpConnectionManager.java:1273)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
      	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:97)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1430)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1388)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1482)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1388)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1482)
      	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1388)
              [...]
      

      Some people have seen this happen occasionally in their browser, as well, so it looks like a legitimate bug (probably a timing issue) and not just a test failure.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              rfernandes Robin Fernandes (go/robinleave) (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: