Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1296

PlatformNotSupportedException thrown when using libcurl <= 7.29.0 and OpenSSL

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.4.0-dp3, 2.4.0
    • backlog-2.0, .backlog
    • docs
    • None

    Description

      On a host that has curl built without OpenSSL, N1QL query throws following exception.

      System.PlatformNotSupportedException: The libcurl library in use (7.29.0) and its SSL backend ("NSS/3.21 Basic ECC") do not support custom handling of certificates. A libcurl built with OpenSSL is required.

       

      This is due to https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/N1QL/QueryClient.cs#L393, which calls System.Net.Http.HttpClient.PostAsync that requires libcurl with OpenSSL.

       

      Workaround is to upgrade libcurl to later than 7.29.0.

      On CentOS, since 7.29.0 is the latest, download and install

      ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/Scott_Cantor/CentOS_7/x86_64/libcurl-openssl-7.43.0-1.1.x86_64.rpm

      with yum. Example is 

       

      'yum install libcurl-openssl-7.43.0-1.1.x86_64.rpm'

      which will install a single file /opt/shibboleth/lib64/libcurl.so.4.3.0 and a symbolic link.

      Then replace /usr/lib64/libcurl.so.4.3.0 with /opt/shibboleth/lib64/libcurl.so.4.3.0 or do whatever symbolic link that will invoke new libcurl.so.4.3.0

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jaekwon.park Jae Park [X] (Inactive) created issue -
          Anonymous made changes -
          Field Original Value New Value
          Status New [ 10003 ] Open [ 1 ]
          jaekwon.park Jae Park [X] (Inactive) made changes -
          Link This issue duplicates SDKQE-931 [ SDKQE-931 ]
          jmorris Jeff Morris made changes -
          Component/s docs [ 10123 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.0 [ 13420 ]
          jmorris Jeff Morris made changes -
          Affects Version/s 2.4.0-dp3 [ 13801 ]
          ingenthr Matt Ingenthron made changes -
          Fix Version/s 2.4.1 [ 14100 ]
          Fix Version/s 2.4.0 [ 13420 ]
          Affects Version/s 2.4.0 [ 13420 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.2 [ 14213 ]
          Fix Version/s 2.4.1 [ 14100 ]
          mike.goldsmith Michael Goldsmith made changes -
          Fix Version/s 2.4.3 [ 14305 ]
          Fix Version/s 2.4.2 [ 14213 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.4 [ 14306 ]
          Fix Version/s 2.4.3 [ 14305 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.5 [ 14504 ]
          Fix Version/s 2.4.4 [ 14306 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.6 [ 14505 ]
          Fix Version/s 2.4.5 [ 14504 ]
          jmorris Jeff Morris made changes -
          Assignee Jeff Morris [ jmorris ] Jae Park [ jaekwon.park ]
          jmorris Jeff Morris added a comment -

          Jae Park [X] -

          Same as NCBC-1318 - let's re-verify on testing cycle perhaps after checking to see if there is an update for the host machine?

          -Jeff

          jmorris Jeff Morris added a comment - Jae Park [X] - Same as  NCBC-1318 - let's re-verify on testing cycle perhaps after checking to see if there is an update for the host machine? -Jeff

          tested with 2.4.6 on CentOS7 and the issue still exists.

          Since this is caused by libcurl.so, unless libcurl new version with ssl released for CentOS7, I think this will not be resolved. Just documentation for CentOS7 users would be enough.

          jaekwon.park Jae Park [X] (Inactive) added a comment - tested with 2.4.6 on CentOS7 and the issue still exists. Since this is caused by libcurl.so, unless libcurl new version with ssl released for CentOS7, I think this will not be resolved. Just documentation for CentOS7 users would be enough.
          jaekwon.park Jae Park [X] (Inactive) made changes -
          Assignee Jae Park [ jaekwon.park ] Jeff Morris [ jmorris ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.4.8 [ 14541 ]
          Fix Version/s 2.4.6 [ 14505 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.5.0 [ 14510 ]
          Fix Version/s 2.4.8 [ 14541 ]
          mike.goldsmith Michael Goldsmith made changes -
          Fix Version/s 2.5.1 [ 14704 ]
          Fix Version/s 2.5.0 [ 14510 ]
          mike.goldsmith Michael Goldsmith made changes -
          Fix Version/s 2.5.2 [ 14815 ]
          Fix Version/s 2.5.1 [ 14704 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.5.3 [ 14906 ]
          Fix Version/s 2.5.2 [ 14815 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.5.4 [ 14916 ]
          Fix Version/s 2.5.3 [ 14906 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.5.5 [ 15050 ]
          Fix Version/s 2.5.4 [ 14916 ]
          jmorris Jeff Morris made changes -
          Fix Version/s backlog-2.0 [ 11326 ]
          Fix Version/s 2.5.5 [ 15050 ]
          jmorris Jeff Morris made changes -
          Summary .NETCore SDK N1QL query throws System.PlatformNotSupportedException PlatformNotSupportedException thrown when using libcurl <= 7.29.0 and OpenSSL
          jmorris Jeff Morris made changes -
          Fix Version/s .backlog [ 16317 ]
          jmorris Jeff Morris made changes -
          Rank Ranked lower
          jmorris Jeff Morris made changes -
          Assignee Jeff Morris [ jmorris ]
          jmorris Jeff Morris added a comment -

          Marking these as closed and "Wont fix" as they are old and align with sdk2 which is now EOL. If you disagree (customer escalation for example), please reopen and assign to me with the reason for reopening.

          jmorris Jeff Morris added a comment - Marking these as closed and "Wont fix" as they are old and align with sdk2 which is now EOL. If you disagree (customer escalation for example), please reopen and assign to me with the reason for reopening.
          jmorris Jeff Morris made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            Unassigned Unassigned
            jaekwon.park Jae Park [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty