FS#61193 - [aurweb] cloning an invald https git url creates an 500
Attached to Project:
AUR web interface
Opened by Jelle van der Waa (jelly) - Thursday, 27 December 2018, 21:03 GMT
Last edited by Leonidas Spyropoulos (inglor) - Tuesday, 08 August 2023, 09:08 GMT
Opened by Jelle van der Waa (jelly) - Thursday, 27 December 2018, 21:03 GMT
Last edited by Leonidas Spyropoulos (inglor) - Tuesday, 08 August 2023, 09:08 GMT
|
Details
Some users seem to do https clones with a dot appended to
the git clone url. This causes an error 500, it would be
better to return a 400 or 404.
A typical request is for example: [27/Dec/2018:19:33:21 +0000] "GET /xiphos.git./info/refs?service=git-upload-pack HTTP/2.0" 500 0 "-" "git/2.19.2" "-" 0.003 |
This task depends upon
Closed by Leonidas Spyropoulos (inglor)
Tuesday, 08 August 2023, 09:08 GMT
Reason for closing: Deferred
Additional comments about closing: See Gitlab is still an issue.
Tuesday, 08 August 2023, 09:08 GMT
Reason for closing: Deferred
Additional comments about closing: See Gitlab is still an issue.
location ~ "^/([a-z0-9][a-z0-9.+_-]*?)(\.git)?/(git-(receive|upload)-pack|HEAD|info/refs|objects/(info/(http-)?alternates|packs)|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))$" {
Fundamentally what this should do is let you clone an empty repo literally called xiphos.git. (xiphos.git. is identical to xiphos.git..git)