FS#45428 - Shallow clones over HTTPS are broken

Attached to Project: AUR web interface
Opened by Chris Warrick (Kwpolska) - Tuesday, 23 June 2015, 09:58 GMT
Last edited by Lukas Fleischer (lfleischer) - Sunday, 28 June 2015, 14:26 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 4.0.0-rc3
Due in Version 4.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

SSH:
$ git cloneaur@aur4.archlinux.org/pkgbuilder.git"> ssh://aur@aur4.archlinux.org/pkgbuilder.git
Cloning into 'pkgbuilder'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 23 (delta 6), reused 22 (delta 6)
Receiving objects: 100% (23/23), done.
Resolving deltas: 100% (6/6), done.
Checking connectivity... done.
$ rm -rf pkgbuiilder
$ git cloneaur@aur4.archlinux.org/pkgbuilder.git"> ssh://aur@aur4.archlinux.org/pkgbuilder.git --depth 1
Cloning into 'pkgbuilder'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 4 (delta 0)
Receiving objects: 100% (4/4), done.
Checking connectivity... done.

---

HTTPS:
$ git clone https://aur4.archlinux.org/pkgbuilder.git/
Cloning into 'pkgbuilder'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 23 (delta 6), reused 22 (delta 6)
Unpacking objects: 100% (23/23), done.
Checking connectivity... done.
$ rm -rf pkgbuiilder
$ git clone https://aur4.archlinux.org/pkgbuilder.git/ --depth 1
Cloning into 'pkgbuilder'...
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Sunday, 28 June 2015, 14:26 GMT
Reason for closing:  Fixed
Comment by Lukas Fleischer (lfleischer) - Tuesday, 23 June 2015, 10:07 GMT
Error code 18 is CURLE_PARTIAL_FILE ("A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.", see [1]). GIT_CURL_VERBOSE=1 reveals that this error occurs on "POST /pkgbuilder.git/git-upload-pack HTTP/1.1".

[1] http://curl.haxx.se/libcurl/c/libcurl-errors.html
Comment by Lukas Fleischer (lfleischer) - Sunday, 28 June 2015, 14:26 GMT
Seems that this was caused by some strange uWSGI bug or setting. We replaced it with fcgiwrap for now.

Loading...