X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c9fe930b422bd1675af3adb324ede3b5aa28888c..b89ab7f9270acfabe9139d14d7071cf117b39bd4:/lib/controller/router/request.go diff --git a/lib/controller/router/request.go b/lib/controller/router/request.go index 977a15f3ab..31f2e1d7ba 100644 --- a/lib/controller/router/request.go +++ b/lib/controller/router/request.go @@ -63,7 +63,11 @@ func guessAndParse(k, v string) (interface{}, error) { func (rtr *router) loadRequestParams(req *http.Request, attrsKey string) (map[string]interface{}, error) { err := req.ParseForm() if err != nil { - return nil, httpError(http.StatusBadRequest, err) + if err.Error() == "http: request body too large" { + return nil, httpError(http.StatusRequestEntityTooLarge, err) + } else { + return nil, httpError(http.StatusBadRequest, err) + } } params := map[string]interface{}{} @@ -170,6 +174,9 @@ var boolParams = map[string]bool{ "redirect_to_new_user": true, "send_notification_email": true, "bypass_federation": true, + "recursive": true, + "exclude_home_project": true, + "no_forward": true, } func stringToBool(s string) bool {