Project

General

Profile

Actions

Bug #9421

closed

`arv` cli attempts to make very long GET requests rather than POST

Added by Joshua Randall almost 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Story points:
-

Description

The `arv` cli sends parameters in the query part of the URL of a GET request, which in some cases exceeds the maximum allowed URL length. One example would be when specifying filters using the `in` operator with a list of ~1000 elements. E.g. `-f '"uuid","in",["very","long","list","of","uuids"]'`

In this case I get a 414 status from nginx.

For example:

```
arv collection list -f '[["uuid","in",'$(arv link list -f '[["link_class","=","tag"],["name","=","study:IHTP_MWGS_HELICMANOLIS"]]' -s '["head_uuid"]' -l 10000 | jq -c '.items | map(.head_uuid)')']]' -l 0
Failed to parse server response:
757: unexpected token at '<html>
<head><title>414 Request-URI Too Large</title></head>
<body bgcolor="white">
<center><h1>414 Request-URI Too Large</h1></center>
<hr><center>nginx/1.8.1</center>
</body>
</html>
'
```

Actions #1

Updated by Peter Amstutz about 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF