mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
The Query walk the managed-policy family reads its constraints through read scalars only, and refused an operation whose input carries a list when the vendored file loaded. It reads a list now, and a structure, which is what the rest of this track is gated on: 34 of IAM's 180 operations carry a list or a map, and 6 of STS's 11 do. A list arrives numbered under its own name, Audience.member.1 or the bare Audience.1, and a member of a list of structures carries its fields under that prefix, as Tags.member.1.Key does. Each is named in a message the way this package already names one, filter.1.member and tags.1.member.key, under the index the request spelled rather than the position the member sits at, which is what #6478 settled. The count is held to the list's own bounds with the value left out of the message, which is the form checkListLength and the audience check both already answer: quoting it would echo every member of the list back. A list of no members is how an absent list arrives on this protocol, so a required one reads as null rather than as a list breaking a minimum of 1, and only a minimum above 1 is reachable at all. A structure member arrives as TaskPolicyArn.Arn and is named taskPolicyArn.arn, and a request naming none of its fields is a request without the member. GetAccountAuthorizationDetails is the operation this wave opts in, and the one where the model adds refusals rather than rewording an answer already given: the handler reads none of its three declared members, so a Filter outside the model's enum, a MaxItems outside 1 to 1000 and a Marker breaking its length or its pattern are all answered with a 200 today. They are a 400 ValidationError now, which is the ordering #6402 settled for this package. A map is still refused when the file loads, and so is anything nested deeper than a list of structures. The refusal is the point rather than a gap: this package answers a map against the whole map today, Map keys must satisfy constraint on PutAccountProperties, where the protocol numbers a map's entries as Properties.entry.N.key, and no source here says which of the two AWS answers. Reading one would reword a merged answer on the strength of a guess. The reader the walk needs went into AwsQueryLists rather than into a third copy. That file already reads a list's values, and StsQueryHandler holds a private copy that captures the prefix and the index for the same reason this one does; the STS wave is where that copy goes. A number too large for a long is a number all the same, which the range check reads as one now. It compared through a long before, so a MaxItems of 9223372036854775808 failed to parse, read as no number at all and reached the operation past a maximum of 1000. The bound it breaks is one that fits in a long either way, so the comparison carries no width of its own, and the value is written as the number reads rather than as the request spelled it, a leading plus or zero gone, which is what a parsed value already answered. Seven unit tests cover the new forms, two of them on the reader, which is where one of them found that a key naming its own member read as a member numbered after it: the index is a number or the key is not a member's. Four wire tests cover the operation. Removing the list branch fails four of the six list and structure tests and two of the four wire tests: the two that stay green are MaxItems and Marker, scalars the walk already read, so they prove the operation was opted in rather than the walk.