AUR web interface

Tasklist

FS#60504 - empty reply given in HTTP2 when URI too long

Attached to Project: AUR web interface
Opened by Dave Reisner (falconindy) - Saturday, 20 October 2018, 14:44 GMT
Task Type Bug Report
Category Backend
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.7.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

With absurdly long URIs (as potentially seen with info requests), the AUR behaves inconsistently between HTTP 1.1 and HTTP 2.

Here's a script to demonstrate the problem:

-----8<------------------
#!/bin/bash

url='https://aur.archlinux.org/rpc?v=5&type=info'

while read -r pkg; do
url+="&arg[]=$pkg"
done < <(pacman -Qq)

curl --http2 -igvso /dev/null "$url"

---------------->8-------

curl spits out:

* Empty reply from server

If you then change the --http2 to --http1.1, you'll get an actual error reply (this is what I expect):

< HTTP/1.1 414 Request-URI Too Large
< Server: nginx/1.14.0
< Date: Sat, 20 Oct 2018 14:01:09 GMT
< Content-Type: text/html
< Content-Length: 193
< Connection: close

This task depends upon

Loading...