Files
floci/src/main/java/io
Allen Sanborn 5680ec4b8f fix(cloudfront): read policy Name and Comment from the config root only (#7252)
* fix(cloudfront): read policy Name and Comment from the config root only

Cache and origin request policy configs nest <Name> elements (cookie,
header and query-string items). A flat first-match lookup stored the
first item name as the policy name when the SDK serialised those blocks
before the top-level Name.

* fix(cloudfront): keep policy Name and Comment text as sent

The direct-child lookup for cache, origin-request and response-headers
policy Name and Comment read XmlElement.text(), which the element tree
trims. A Comment of "  note  " came back as "note". XmlElement now also
carries the untrimmed text as rawText(), which directChildText uses;
text() stays trimmed for the S3 and CloudFront callers that match it
against enum values.

* test(cloudfront): cover padded policy Name and newline-padded Comment
2026-11-01 18:26:49 -04:00
..