VAULT-7698 Fix ignored parameter warnings for endpoint arbitrary data options (#16794)

* VAULT-7698 Fix warnings for endpoint arbitrary data options

* VAULT-7698 Add changelog
This commit is contained in:
Violet Hynes
2022-08-23 08:51:23 -04:00
committed by GitHub
parent f46941f5c0
commit 0de67d5b04
5 changed files with 27 additions and 1 deletions

View File

@@ -221,7 +221,7 @@ func (b *Backend) HandleRequest(ctx context.Context, req *logical.Request) (*log
var ignored []string
for k, v := range req.Data {
raw[k] = v
if path.Fields[k] == nil {
if !path.TakesArbitraryInput && path.Fields[k] == nil {
ignored = append(ignored, k)
}
}