14287: Don't delete non-writable attrs in create/update reqs. 14287-build-in-exp-mode
authorTom Clegg <tclegg@veritasgenetics.com>
Wed, 26 Jun 2019 16:00:05 +0000 (12:00 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 26 Jun 2019 16:00:05 +0000 (12:00 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

lib/controller/router/request.go

index c219b1e1de98d85b0b0f473180a808a61358edc2..377f7243c009bef591fffb4b3b53acaf39c0d359 100644 (file)
@@ -115,13 +115,6 @@ func (rtr *router) loadRequestParams(req *http.Request, attrsKey string) (map[st
        }
 
        if v, ok := params[attrsKey]; ok && attrsKey != "" {
-               if v, ok := v.(map[string]interface{}); ok {
-                       // Delete field(s) that appear in responses
-                       // but not in update attrs, so clients can
-                       // fetch-modify-update.
-                       delete(v, "etag")
-                       delete(v, "unsigned_manifest_text")
-               }
                params["attrs"] = v
                delete(params, attrsKey)
        }