projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16817: Merge branch 'main'
[arvados.git]
/
lib
/
controller
/
router
/
request.go
diff --git
a/lib/controller/router/request.go
b/lib/controller/router/request.go
index 39b4c5100608ebf6a14b250ec26185886aed3ad3..06141b1033e3f0034e003eab07da11c17153496e 100644
(file)
--- 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 {
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{}{}
}
params := map[string]interface{}{}
@@
-169,6
+173,9
@@
var boolParams = map[string]bool{
"include_old_versions": true,
"redirect_to_new_user": true,
"send_notification_email": true,
"include_old_versions": true,
"redirect_to_new_user": true,
"send_notification_email": true,
+ "bypass_federation": true,
+ "recursive": true,
+ "exclude_home_project": true,
}
func stringToBool(s string) bool {
}
func stringToBool(s string) bool {