AynSiddiqui commented on PR #2679:
URL: https://github.com/apache/iceberg-go/pull/2679#issuecomment-7227466454

   Pushed 1d1ee609 (no force-push):
   
   - 307/308 are now followed whatever the lifetime (within the existing 
same-origin and hop-limit policy), so `PT0S` plus a redirect no longer fails 
`CreateNamespace`. As you suggested, the session transport records per request 
(an atomic flag in the request context) that a 307/308 came back, and `GetBody` 
is allowed after that. The flag is cleared after signing, before the next 
attempt, so a transport replay with the window closed is still refused. New: 
`TestKeyedRedirectStatePerRequest`, `TestKeyedRedirectThenTransportReplay`, and 
`PT0S` cases for 307 and 308 in `TestKeyedRedirectReplayWindow`; these fail 
without the change.
   - Added a comment that the ASCII loop guards against `(?i)` folding U+017F 
(ſ) to `s`.
   - Overflow: I kept the Java-exact checks for now. Clamping at `MaxInt64` ns 
would accept six inputs that `Duration.parse` rejects with 
`DateTimeParseException`: `PT9223372036854775808S`, `-PT-9223372036854775808S`, 
`-PT-9223372036854775808.000000001S`, `PT153722867280912930M8S`, 
`PT999999999999999999H`, `PT2562047788015216H-1S`. If you'd rather have the 
clamp, I'll drop those ~25 lines and move the six cases to the valid list.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to