mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 15:49:33 -05:00
* 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