Initially reported by @otmaneomry out of band.
The WebDataBinder supports "field marker" "_" and "default marker" "!" prefixes when binding requests to form objects.
It appears that when specific fields are not allowed for binding, the implementation might still instantiate/autogrow collections to be bound when it's not necessary.
Because binding will occur and no effect is expected, we should save the object allocation and perform checks before the default/field marker support.
Initially reported by @otmaneomry out of band.
The
WebDataBindersupports "field marker""_"and "default marker""!"prefixes when binding requests to form objects.It appears that when specific fields are not allowed for binding, the implementation might still instantiate/autogrow collections to be bound when it's not necessary.
Because binding will occur and no effect is expected, we should save the object allocation and perform checks before the default/field marker support.