Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-18757

LdapHostnameVerificationSSLSocketFactory error when attempting to assign deployment permissions

    Details

    • Last commented by user?:
      true
    • Comments:
      5
    • Symptom Severity:
      Major
    • Regular Expression:
      Root exception is java\.lang\.ClassNotFoundException: com\.atlassian\.user\.util\.LdapHostnameVerificationSSLSocketFactory
    • UIS:
      2
    • Occurrence Factor:
      10%

      Description

      When attempting to search for users to add in a Deployment Projects's permissions the following error show up on the UI:

      Unexpected error paging through LDAP results: javax.naming.CommunicationException: Loading the socket factory [Root exception is java.lang.ClassNotFoundException: com.atlassian.user.util.LdapHostnameVerificationSSLSocketFactory]
      

      The following stacktrace can be found in the logs:

      2017-10-13 04:01:21,126 INFO [http-nio-8085-exec-8] [AccessLogFilter] <USER> GET https://<Bamboo_URL>/rest/api/latest/permissions/project/ACM/available-users?name=lten&limit=25&start=0&_=1507867272494 5618463kb
      2017-10-13 04:01:21,139 ERROR [http-nio-8085-exec-8] [LDAPEntityPager] Error while paging through results
      com.atlassian.user.impl.ldap.repository.LdapConnectionFailedException: javax.naming.CommunicationException: Loading the socket factory [Root exception is java.lang.ClassNotFoundException: com.atlassian.user.util.LdapHostnameVerificationSSLSocketFactory]
              at com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory.getLDAPContext(DefaultLdapContextFactory.java:116)
              at com.atlassian.user.impl.ldap.search.page.AbstractLDAPPager.preload(AbstractLDAPPager.java:84)
              at com.atlassian.user.search.page.AbstractPrefetchingPager.hasNext(AbstractPrefetchingPager.java:41)
              at com.atlassian.user.search.page.MergedListPager$MergedListIterator.getCurrentIterator(MergedListPager.java:168)
              at com.atlassian.user.search.page.MergedListPager$MergedListIterator.hasNext(MergedListPager.java:185)
              at com.atlassian.user.search.page.MergedListPager$MergedListIterator.next(MergedListPager.java:193)
              at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
              at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
              at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
              at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
              at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
              at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
              ...
      Caused by: javax.naming.CommunicationException: Loading the socket factory [Root exception is java.lang.ClassNotFoundException: com.atlassian.user.util.LdapHostnameVerificationSSLSocketFactory]
              at com.sun.jndi.ldap.LdapPoolManager.isPoolingAllowed(LdapPoolManager.java:247)
              at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1604)
              at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2746)
              ...
      Caused by: java.lang.ClassNotFoundException: com.atlassian.user.util.LdapHostnameVerificationSSLSocketFactory
              at com.atlassian.plugins.rest.module.ChainingClassLoader.loadClass(ChainingClassLoader.java:58)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              ...
      

        Attachments

          Activity

            People

            • Votes:
              15 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last commented:
                12 weeks, 5 days ago