-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority/highSomething is of high prioritySomething is of high priorityscale/smallThis is a small changeThis is a small change
Description
Description
Even when using Query-to-Body injection the body cannot be read again (resulting in Data: null),
because GetReqBody() expects Content-Type to be set to json or form.
To Reproduce
Steps to reproduce the behavior:
- Start Container
- Send Request with
@test=no(or sth. else) - Use Field Policy, etc.
- See that body doesn't seem to have updated
Expected behavior
Automatically write content type header into request after Write().
Container logs
secured-signal | {
secured-signal | "Data": null,
secured-signal | "Raw": "eyJ0ZXN0Ijoibm8ifQ==",
secured-signal | "Empty": true
secured-signal | }
Notice Empty: true even tho Raw isn't,
also, the raw output is only base64 encoded because of the logger, but actually raw holds the real json data.
So Data shouldnt be null.
Config files
fieldPolicies:
"@test": { value: no, action: block }Additional Context
This bug is due to gotl, not writing the content type header after a sucessful write.
And has been fixed in v0.0.11 (or v0.0.12).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority/highSomething is of high prioritySomething is of high priorityscale/smallThis is a small changeThis is a small change