KNOWN_BUGS 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. _ _ ____ _
  2. ___| | | | _ \| |
  3. / __| | | | |_) | |
  4. | (__| |_| | _ <| |___
  5. \___|\___/|_| \_\_____|
  6. Known Bugs
  7. These are problems and bugs known to exist at the time of this release. Feel
  8. free to join in and help us correct one or more of these. Also be sure to
  9. check the changelog of the current development status, as one or more of these
  10. problems may have been fixed or changed somewhat since this was written.
  11. 1. HTTP
  12. 1.1 hyper memory-leaks
  13. 1.5 Expect-100 meets 417
  14. 2. TLS
  15. 2.3 Unable to use PKCS12 certificate with Secure Transport
  16. 2.4 Secure Transport will not import PKCS#12 client certificates without a password
  17. 2.5 Client cert handling with Issuer DN differs between backends
  18. 2.7 Client cert (MTLS) issues with Schannel
  19. 2.8 Schannel disable CURLOPT_SSL_VERIFYPEER and verify hostname
  20. 2.11 Schannel TLS 1.2 handshake bug in old Windows versions
  21. 2.12 FTPS with Schannel times out file list operation
  22. 2.13 CURLOPT_CERTINFO results in CURLE_OUT_OF_MEMORY with Schannel
  23. 3. Email protocols
  24. 3.1 IMAP SEARCH ALL truncated response
  25. 3.2 No disconnect command
  26. 3.3 POP3 expects "CRLF.CRLF" eob for some single-line responses
  27. 3.4 AUTH PLAIN for SMTP is not working on all servers
  28. 4. Command line
  29. 5. Build and portability issues
  30. 5.1 OS400 port requires deprecated IBM library
  31. 5.2 curl-config --libs contains private details
  32. 5.5 cannot handle Unicode arguments in non-Unicode builds on Windows
  33. 5.9 Utilize Requires.private directives in libcurl.pc
  34. 5.11 configure --with-gssapi with Heimdal is ignored on macOS
  35. 5.12 flaky CI builds
  36. 5.13 long paths are not fully supported on Windows
  37. 5.14 Windows Unicode builds use homedir in current locale
  38. 6. Authentication
  39. 6.1 NTLM authentication and unicode
  40. 6.2 MIT Kerberos for Windows build
  41. 6.3 NTLM in system context uses wrong name
  42. 6.4 Negotiate and Kerberos V5 need a fake user name
  43. 6.5 NTLM does not support password with § character
  44. 6.6 libcurl can fail to try alternatives with --proxy-any
  45. 6.7 Do not clear digest for single realm
  46. 6.9 SHA-256 digest not supported in Windows SSPI builds
  47. 6.10 curl never completes Negotiate over HTTP
  48. 6.11 Negotiate on Windows fails
  49. 6.12 cannot use Secure Transport with Crypto Token Kit
  50. 6.13 Negotiate against Hadoop HDFS
  51. 7. FTP
  52. 7.3 FTP with NOBODY and FAILONERROR
  53. 7.4 FTP with ACCT
  54. 7.11 FTPS upload data loss with TLS 1.3
  55. 7.12 FTPS directory listing hangs on Windows with Schannel
  56. 9. SFTP and SCP
  57. 9.1 SFTP does not do CURLOPT_POSTQUOTE correct
  58. 9.2 wolfssh: publickey auth does not work
  59. 9.3 Remote recursive folder creation with SFTP
  60. 9.4 libssh blocking and infinite loop problem
  61. 10. SOCKS
  62. 10.3 FTPS over SOCKS
  63. 11. Internals
  64. 11.2 error buffer not set if connection to multiple addresses fails
  65. 11.4 HTTP test server 'connection-monitor' problems
  66. 11.5 Connection information when using TCP Fast Open
  67. 12. LDAP
  68. 12.1 OpenLDAP hangs after returning results
  69. 12.2 LDAP on Windows does authentication wrong?
  70. 12.3 LDAP on Windows does not work
  71. 12.4 LDAPS with NSS is slow
  72. 13. TCP/IP
  73. 13.2 Trying local ports fails on Windows
  74. 15. CMake
  75. 15.2 support build with GnuTLS
  76. 15.3 unusable tool_hugehelp.c with MinGW
  77. 15.4 build docs/curl.1
  78. 15.6 uses -lpthread instead of Threads::Threads
  79. 15.7 generated .pc file contains strange entries
  80. 15.8 libcurl.pc uses absolute library paths
  81. 15.11 ExternalProject_Add does not set CURL_CA_PATH
  82. 15.13 CMake build with MIT Kerberos does not work
  83. 16. Applications
  84. 17. HTTP/2
  85. 17.2 HTTP/2 frames while in the connection pool kill reuse
  86. 17.3 ENHANCE_YOUR_CALM causes infinite retries
  87. 18. HTTP/3
  88. 18.1 connection migration does not work
  89. ==============================================================================
  90. 1. HTTP
  91. 1.1 hyper memory-leaks
  92. Building curl with the hyper backend causes mysterious memory-leaks
  93. https://github.com/curl/curl/issues/10803
  94. 1.5 Expect-100 meets 417
  95. If an upload using Expect: 100-continue receives an HTTP 417 response, it
  96. ought to be automatically resent without the Expect:. A workaround is for
  97. the client application to redo the transfer after disabling Expect:.
  98. https://curl.se/mail/archive-2008-02/0043.html
  99. 2. TLS
  100. 2.3 Unable to use PKCS12 certificate with Secure Transport
  101. See https://github.com/curl/curl/issues/5403
  102. 2.4 Secure Transport will not import PKCS#12 client certificates without a password
  103. libcurl calls SecPKCS12Import with the PKCS#12 client certificate, but that
  104. function rejects certificates that do not have a password.
  105. https://github.com/curl/curl/issues/1308
  106. 2.5 Client cert handling with Issuer DN differs between backends
  107. When the specified client certificate does not match any of the
  108. server-specified DNs, the OpenSSL and GnuTLS backends behave differently.
  109. The github discussion may contain a solution.
  110. See https://github.com/curl/curl/issues/1411
  111. 2.7 Client cert (MTLS) issues with Schannel
  112. See https://github.com/curl/curl/issues/3145
  113. 2.8 Schannel disable CURLOPT_SSL_VERIFYPEER and verify hostname
  114. This seems to be a limitation in the underlying Schannel API.
  115. https://github.com/curl/curl/issues/3284
  116. 2.11 Schannel TLS 1.2 handshake bug in old Windows versions
  117. In old versions of Windows such as 7 and 8.1 the Schannel TLS 1.2 handshake
  118. implementation likely has a bug that can rarely cause the key exchange to
  119. fail, resulting in error SEC_E_BUFFER_TOO_SMALL or SEC_E_MESSAGE_ALTERED.
  120. https://github.com/curl/curl/issues/5488
  121. 2.12 FTPS with Schannel times out file list operation
  122. "Instead of the command completing, it just sits there until the timeout
  123. expires." - the same command line seems to work with other TLS backends and
  124. other operating systems. See https://github.com/curl/curl/issues/5284.
  125. 2.13 CURLOPT_CERTINFO results in CURLE_OUT_OF_MEMORY with Schannel
  126. https://github.com/curl/curl/issues/8741
  127. 3. Email protocols
  128. 3.1 IMAP SEARCH ALL truncated response
  129. IMAP "SEARCH ALL" truncates output on large boxes. "A quick search of the
  130. code reveals that pingpong.c contains some truncation code, at line 408, when
  131. it deems the server response to be too large truncating it to 40 characters"
  132. https://curl.se/bug/view.cgi?id=1366
  133. 3.2 No disconnect command
  134. The disconnect commands (LOGOUT and QUIT) may not be sent by IMAP, POP3 and
  135. SMTP if a failure occurs during the authentication phase of a connection.
  136. 3.3 POP3 expects "CRLF.CRLF" eob for some single-line responses
  137. You have to tell libcurl not to expect a body, when dealing with one line
  138. response commands. Please see the POP3 examples and test cases which show
  139. this for the NOOP and DELE commands. https://curl.se/bug/?i=740
  140. 3.4 AUTH PLAIN for SMTP is not working on all servers
  141. Specifying "--login-options AUTH=PLAIN" on the command line does not seem to
  142. work correctly.
  143. See https://github.com/curl/curl/issues/4080
  144. 4. Command line
  145. 5. Build and portability issues
  146. 5.1 OS400 port requires deprecated IBM library
  147. curl for OS400 requires QADRT to build, which provides ASCII wrappers for
  148. libc/POSIX functions in the ILE, but IBM no longer supports or even offers
  149. this library to download.
  150. See https://github.com/curl/curl/issues/5176
  151. 5.2 curl-config --libs contains private details
  152. "curl-config --libs" will include details set in LDFLAGS when configure is
  153. run that might be needed only for building libcurl. Further, curl-config
  154. --cflags suffers from the same effects with CFLAGS/CPPFLAGS.
  155. 5.5 cannot handle Unicode arguments in non-Unicode builds on Windows
  156. If a URL or filename cannot be encoded using the user's current codepage then
  157. it can only be encoded properly in the Unicode character set. Windows uses
  158. UTF-16 encoding for Unicode and stores it in wide characters, however curl
  159. and libcurl are not equipped for that at the moment except when built with
  160. _UNICODE and UNICODE defined. And, except for Cygwin, Windows cannot use UTF-8
  161. as a locale.
  162. https://curl.se/bug/?i=345
  163. https://curl.se/bug/?i=731
  164. https://curl.se/bug/?i=3747
  165. 5.9 Utilize Requires.private directives in libcurl.pc
  166. https://github.com/curl/curl/issues/864
  167. 5.11 configure --with-gssapi with Heimdal is ignored on macOS
  168. ... unless you also pass --with-gssapi-libs
  169. https://github.com/curl/curl/issues/3841
  170. 5.12 flaky CI builds
  171. We run many CI builds for each commit and PR on github, and especially a
  172. number of the Windows builds are flaky. This means that we rarely get all CI
  173. builds go green and complete without errors. This is unfortunate as it makes
  174. us sometimes miss actual build problems and it is surprising to newcomers to
  175. the project who (rightfully) do not expect this.
  176. See https://github.com/curl/curl/issues/6972
  177. 5.13 long paths are not fully supported on Windows
  178. curl on Windows cannot access long paths (paths longer than 260 characters).
  179. However, as a workaround, the Windows path prefix \\?\ which disables all path
  180. interpretation may work to allow curl to access the path. For example:
  181. \\?\c:\longpath.
  182. See https://github.com/curl/curl/issues/8361
  183. 5.14 Windows Unicode builds use homedir in current locale
  184. The Windows Unicode builds of curl use the current locale, but expect Unicode
  185. UTF-8 encoded paths for internal use such as open, access and stat. The user's
  186. home directory is retrieved via curl_getenv in the current locale and not as
  187. UTF-8 encoded Unicode.
  188. See https://github.com/curl/curl/pull/7252 and
  189. https://github.com/curl/curl/pull/7281
  190. 6. Authentication
  191. 6.1 NTLM authentication and unicode
  192. NTLM authentication involving unicode user name or password only works
  193. properly if built with UNICODE defined together with the Schannel
  194. backend. The original problem was mentioned in:
  195. https://curl.se/mail/lib-2009-10/0024.html
  196. https://curl.se/bug/view.cgi?id=896
  197. The Schannel version verified to work as mentioned in
  198. https://curl.se/mail/lib-2012-07/0073.html
  199. 6.2 MIT Kerberos for Windows build
  200. libcurl fails to build with MIT Kerberos for Windows (KfW) due to KfW's
  201. library header files exporting symbols/macros that should be kept private to
  202. the KfW library. See ticket #5601 at https://krbdev.mit.edu/rt/
  203. 6.3 NTLM in system context uses wrong name
  204. NTLM authentication using SSPI (on Windows) when (lib)curl is running in
  205. "system context" will make it use wrong(?) user name - at least when compared
  206. to what winhttp does. See https://curl.se/bug/view.cgi?id=535
  207. 6.4 Negotiate and Kerberos V5 need a fake user name
  208. In order to get Negotiate (SPNEGO) authentication to work in HTTP or Kerberos
  209. V5 in the email protocols, you need to provide a (fake) user name (this
  210. concerns both curl and the lib) because the code wrongly only considers
  211. authentication if there's a user name provided by setting
  212. conn->bits.user_passwd in url.c https://curl.se/bug/view.cgi?id=440 How?
  213. https://curl.se/mail/lib-2004-08/0182.html A possible solution is to
  214. either modify this variable to be set or introduce a variable such as
  215. new conn->bits.want_authentication which is set when any of the authentication
  216. options are set.
  217. 6.5 NTLM does not support password with § character
  218. https://github.com/curl/curl/issues/2120
  219. 6.6 libcurl can fail to try alternatives with --proxy-any
  220. When connecting via a proxy using --proxy-any, a failure to establish an
  221. authentication will cause libcurl to abort trying other options if the
  222. failed method has a higher preference than the alternatives. As an example,
  223. --proxy-any against a proxy which advertise Negotiate and NTLM, but which
  224. fails to set up Kerberos authentication will not proceed to try authentication
  225. using NTLM.
  226. https://github.com/curl/curl/issues/876
  227. 6.7 Do not clear digest for single realm
  228. https://github.com/curl/curl/issues/3267
  229. 6.9 SHA-256 digest not supported in Windows SSPI builds
  230. Windows builds of curl that have SSPI enabled use the native Windows API calls
  231. to create authentication strings. The call to InitializeSecurityContext fails
  232. with SEC_E_QOP_NOT_SUPPORTED which causes curl to fail with CURLE_AUTH_ERROR.
  233. Microsoft does not document supported digest algorithms and that SEC_E error
  234. code is not a documented error for InitializeSecurityContext (digest).
  235. https://github.com/curl/curl/issues/6302
  236. 6.10 curl never completes Negotiate over HTTP
  237. Apparently it is not working correctly...?
  238. See https://github.com/curl/curl/issues/5235
  239. 6.11 Negotiate on Windows fails
  240. When using --negotiate (or NTLM) with curl on Windows, SSL/TLS handshake
  241. fails despite having a valid kerberos ticket cached. Works without any issue
  242. in Unix/Linux.
  243. https://github.com/curl/curl/issues/5881
  244. 6.12 cannot use Secure Transport with Crypto Token Kit
  245. https://github.com/curl/curl/issues/7048
  246. 6.13 Negotiate authentication against Hadoop HDFS
  247. https://github.com/curl/curl/issues/8264
  248. 7. FTP
  249. 7.3 FTP with NOBODY and FAILONERROR
  250. It seems sensible to be able to use CURLOPT_NOBODY and CURLOPT_FAILONERROR
  251. with FTP to detect if a file exists or not, but it is not working:
  252. https://curl.se/mail/lib-2008-07/0295.html
  253. 7.4 FTP with ACCT
  254. When doing an operation over FTP that requires the ACCT command (but not when
  255. logging in), the operation will fail since libcurl does not detect this and
  256. thus fails to issue the correct command:
  257. https://curl.se/bug/view.cgi?id=635
  258. 7.11 FTPS upload data loss with TLS 1.3
  259. During FTPS upload curl does not attempt to read TLS handshake messages sent
  260. after the initial handshake. OpenSSL servers running TLS 1.3 may send such a
  261. message. When curl closes the upload connection if unread data has been
  262. received (such as a TLS handshake message) then the TCP protocol sends an
  263. RST to the server, which may cause the server to discard or truncate the
  264. upload if it has not read all sent data yet, and then return an error to curl
  265. on the control channel connection.
  266. Since 7.78.0 this is mostly fixed. curl will do a single read before closing
  267. TLS connections (which causes the TLS library to read handshake messages),
  268. however there is still possibility of an RST if more messages need to be read
  269. or a message arrives after the read but before close (network race condition).
  270. https://github.com/curl/curl/issues/6149
  271. 7.12 FTPS directory listing hangs on Windows with Schannel
  272. https://github.com/curl/curl/issues/9161
  273. 9. SFTP and SCP
  274. 9.1 SFTP does not do CURLOPT_POSTQUOTE correct
  275. When libcurl sends CURLOPT_POSTQUOTE commands when connected to a SFTP server
  276. using the multi interface, the commands are not being sent correctly and
  277. instead the connection is "cancelled" (the operation is considered done)
  278. prematurely. There is a half-baked (busy-looping) patch provided in the bug
  279. report but it cannot be accepted as-is. See
  280. https://curl.se/bug/view.cgi?id=748
  281. 9.2 wolfssh: publickey auth does not work
  282. When building curl to use the wolfSSH backend for SFTP, the publickey
  283. authentication does not work. This is simply functionality not written for curl
  284. yet, the necessary API for make this work is provided by wolfSSH.
  285. See https://github.com/curl/curl/issues/4820
  286. 9.3 Remote recursive folder creation with SFTP
  287. On this servers, the curl fails to create directories on the remote server
  288. even when the CURLOPT_FTP_CREATE_MISSING_DIRS option is set.
  289. See https://github.com/curl/curl/issues/5204
  290. 9.4 libssh blocking and infinite loop problem
  291. In the SSH_SFTP_INIT state for libssh, the ssh session working mode is set to
  292. blocking mode. If the network is suddenly disconnected during sftp
  293. transmission, curl will be stuck, even if curl is configured with a timeout.
  294. https://github.com/curl/curl/issues/8632
  295. 10. SOCKS
  296. 10.3 FTPS over SOCKS
  297. libcurl does not support FTPS over a SOCKS proxy.
  298. 11. Internals
  299. 11.2 error buffer not set if connection to multiple addresses fails
  300. If you ask libcurl to resolve a hostname like example.com to IPv6 addresses
  301. only. But you only have IPv4 connectivity. libcurl will correctly fail with
  302. CURLE_COULDNT_CONNECT. But the error buffer set by CURLOPT_ERRORBUFFER
  303. remains empty. Issue: https://github.com/curl/curl/issues/544
  304. 11.4 HTTP test server 'connection-monitor' problems
  305. The 'connection-monitor' feature of the sws HTTP test server does not work
  306. properly if some tests are run in unexpected order. Like 1509 and then 1525.
  307. See https://github.com/curl/curl/issues/868
  308. 11.5 Connection information when using TCP Fast Open
  309. CURLINFO_LOCAL_PORT (and possibly a few other) fails when TCP Fast Open is
  310. enabled.
  311. See https://github.com/curl/curl/issues/1332 and
  312. https://github.com/curl/curl/issues/4296
  313. 12. LDAP
  314. 12.1 OpenLDAP hangs after returning results
  315. By configuration defaults, OpenLDAP automatically chase referrals on
  316. secondary socket descriptors. The OpenLDAP backend is asynchronous and thus
  317. should monitor all socket descriptors involved. Currently, these secondary
  318. descriptors are not monitored, causing OpenLDAP library to never receive
  319. data from them.
  320. As a temporary workaround, disable referrals chasing by configuration.
  321. The fix is not easy: proper automatic referrals chasing requires a
  322. synchronous bind callback and monitoring an arbitrary number of socket
  323. descriptors for a single easy handle (currently limited to 5).
  324. Generic LDAP is synchronous: OK.
  325. See https://github.com/curl/curl/issues/622 and
  326. https://curl.se/mail/lib-2016-01/0101.html
  327. 12.2 LDAP on Windows does authentication wrong?
  328. https://github.com/curl/curl/issues/3116
  329. 12.3 LDAP on Windows does not work
  330. A simple curl command line getting "ldap://ldap.forumsys.com" returns an
  331. error that says "no memory" !
  332. https://github.com/curl/curl/issues/4261
  333. 12.4 LDAPS with NSS is slow
  334. See https://github.com/curl/curl/issues/5874
  335. 13. TCP/IP
  336. 13.2 Trying local ports fails on Windows
  337. This makes '--local-port [range]' to not work since curl can't properly
  338. detect if a port is already in use, so it'll try the first port, use that and
  339. then subsequently fail anyway if that was actually in use.
  340. https://github.com/curl/curl/issues/8112
  341. 15. CMake
  342. 15.2 support build with GnuTLS
  343. 15.3 unusable tool_hugehelp.c with MinGW
  344. see https://github.com/curl/curl/issues/3125
  345. 15.4 build docs/curl.1
  346. The cmake build does not create the docs/curl.1 file and therefore must rely on
  347. it being there already. This makes the --manual option not work and test
  348. cases like 1139 cannot function.
  349. 15.6 uses -lpthread instead of Threads::Threads
  350. See https://github.com/curl/curl/issues/6166
  351. 15.7 generated .pc file contains strange entries
  352. The Libs.private field of the generated .pc file contains -lgcc -lgcc_s -lc
  353. -lgcc -lgcc_s
  354. See https://github.com/curl/curl/issues/6167
  355. 15.8 libcurl.pc uses absolute library paths
  356. The libcurl.pc file generated by cmake contains things like Libs.private:
  357. /usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libz.so. The
  358. autotools equivalent would say Libs.private: -lssl -lcrypto -lz
  359. See https://github.com/curl/curl/issues/6169
  360. 15.11 ExternalProject_Add does not set CURL_CA_PATH
  361. CURL_CA_BUNDLE and CURL_CA_PATH are not set properly when cmake's
  362. ExternalProject_Add is used to build curl as a dependency.
  363. See https://github.com/curl/curl/issues/6313
  364. 15.13 CMake build with MIT Kerberos does not work
  365. Minimum CMake version was bumped in curl 7.71.0 (#5358) Since CMake 3.2
  366. try_compile started respecting the CMAKE_EXE_FLAGS. The code dealing with
  367. MIT Kerberos detection sets few variables to potentially weird mix of space,
  368. and ;-separated flags. It had to blow up at some point. All the CMake checks
  369. that involve compilation are doomed from that point, the configured tree
  370. cannot be built.
  371. https://github.com/curl/curl/issues/6904
  372. 16. Applications
  373. 17. HTTP/2
  374. 17.2 HTTP/2 frames while in the connection pool kill reuse
  375. If the server sends HTTP/2 frames (like for example an HTTP/2 PING frame) to
  376. curl while the connection is held in curl's connection pool, the socket will
  377. be found readable when considered for reuse and that makes curl think it is
  378. dead and then it will be closed and a new connection gets created instead.
  379. This is *best* fixed by adding monitoring to connections while they are kept
  380. in the pool so that pings can be responded to appropriately.
  381. 17.3 ENHANCE_YOUR_CALM causes infinite retries
  382. Infinite retries with 2 parallel requests on one connection receiving GOAWAY
  383. with ENHANCE_YOUR_CALM error code.
  384. See https://github.com/curl/curl/issues/5119
  385. 18. HTTP/3
  386. 18.1 connection migration does not work
  387. https://github.com/curl/curl/issues/7695