Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17142

Integration with HipChat Server is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.10.1
    • 5.10.0
    • HipChat integration
    • None

    Description

      After upgrading from Bamboo 5.9.7 to Bamboo 5.10.0, HipChat integration using redirect in /etc/hosts as per https://confluence.atlassian.com/bamboo/integrating-bamboo-with-hipchat-289276960.html#IntegratingBamboowithHipChat-ConfigureBambooplanstosendnotificationstoyourHipChatserver
      which worked fine in 5.9.7, throws an error in log

      2016-01-22 12:40:25,472 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.
      security.cert.CertificateException: No subject alternative DNS name matching api.hipchat.com found.
      2016-01-22 12:40:25,472 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] Retrying request
      2016-01-22 12:40:25,520 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.
      security.cert.CertificateException: No subject alternative DNS name matching api.hipchat.com found.
      2016-01-22 12:40:25,520 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] Retrying request
      2016-01-22 12:40:25,572 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.
      security.cert.CertificateException: No subject alternative DNS name matching api.hipchat.com found.
      2016-01-22 12:40:25,572 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HttpMethodDirector] Retrying request
      2016-01-22 12:40:25,624 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-14] [HipchatNotificationTransport] Error using Hipchat API: java.security.cert.CertificateException: No 
      subject alternative DNS name matching api.hipchat.com found.
      javax.net.ssl.SSLException: java.security.cert.CertificateException: No subject alternative DNS name matching api.hipchat.com found.
              at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:287)
              at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:267)
              at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:124)
              at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:157)
              at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
              at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
              at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
              at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
              at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
              at com.atlassian.bamboo.hipchat.HipchatNotificationTransport.sendNotification(HipchatNotificationTransport.java:110)
              at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:60)
              at com.atlassian.bamboo.deployments.notification.DeploymentNotificationEventListener.onDeploymentFinished(DeploymentNotificationEventListener.java:117)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
              at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
              at java.lang.Thread.run(Unknown Source)
      Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching api.hipchat.com found.
              at sun.security.util.HostnameChecker.matchDNS(Unknown Source)
              at sun.security.util.HostnameChecker.match(Unknown Source)
              at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:284)
              ... 24 more
      

      JRE is Oracle JRE 1.8.0.66

      java -version
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              53cb80a6284e Unirenter IT
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: