AUR web interface

**This is the bug tracker for the AUR web interface.**

Use this tracker to report bugs or make feature requests regarding the behaviour or implementation of the AUR software.
Please read the Reporting Bug Guidelines before filing a new task.
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

- Please report bugs related to Arch Linux official packages here: http://bugs.archlinux.org/index.php?project=1
- Please report bugs for [community] packages here: http://bugs.archlinux.org/index.php?project=5
- For any packages in the AUR contact the maintainer or leave a comment on the package's detail page.

Source Code:
https://projects.archlinux.org/aurweb.git/
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...