Files
floci/src/main/java/io/github
Sam Fakhreddine 149ac635f2 fix(ssm): validate SettingValue and require an account list on ModifyDocumentPermission (#2635)
* fix(ssm): validate SettingValue and require an account list on ModifyDocumentPermission

UpdateServiceSetting.SettingValue was read with plain asText(), so an absent
or blank value silently stored an empty customized setting, and botocore's
ServiceSettingValue max (4096) was never enforced. ModifyDocumentPermission
accepted a request with neither AccountIdsToAdd nor AccountIdsToRemove and
returned success having shared/unshared nothing, when botocore documents at
least one of the two as required.

* fix(ssm): review comments — whitespace SettingValue, non-list AccountIds, message format

Greptile: isBlank() rejected a whitespace-only SettingValue even though
botocore's ServiceSettingValue constraint is length-only (min 1); switched to
isEmpty().

Copilot: a non-list AccountIdsToAdd/AccountIdsToRemove payload was silently
treated as an empty list because forEach() on a scalar/object node yields no
elements, so the new "neither list specified" guard could pass a malformed
request. Reject a present-but-non-array field explicitly, and reworded that
guard's message to match this file's "1 validation error detected:" prefix.
2026-08-27 22:26:30 -04:00
..