maxformbodysize is not bounds-checked, so a bad value fails at layer construction instead of config load #58
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/support#58
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Noticed while working SUPP-53 (see #53).
maxformbodysizeis not bounds-checked inPac4jSecurityConfig.config. Anout-of-range value therefore fails as an
IllegalArgumentExceptionthrown fromUrlEncodedBodyBuffer.applyat layer construction time, instead of a typedConfig.Errorat config load time.Fix direction:
Config.long(...).mapOrFail(...)keeps the failure inside the ZIOConfig error channel, so a bad value is reported as a configuration error with the
other config problems.