haskell / haskell/hackage-server

Is `curl --anyauth` supported properly when uploading documentation with cabal?

Open
#1,389 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Re: https://github.com/haskell/cabal/issues/10920

Since cabal 3.14 (PR https://github.com/haskell/cabal/pull/10089) `cabal upload` uses `--anyauth` instead of `--digest` with `curl`.
On my machine at least, this broke the uploading of documentation.

I am reading https://github.com/curl/curl/issues/6309#issuecomment-743919485
> `--anyauth` is not as efficient as `--digest` because it sends the content twice. the server should ask for authorization without the content.

Is hackage server handling this situation correctly?

NB: `curl --version`

curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.64.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.