-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetObjectFluentBuilder.if_modified_since
has no effect
#818
Comments
Hey @cowlicks, thanks for submitting this issue. We'll look into it. |
@cowlicks Ok, I figured it out. If you send dates with subsecond nanos, then S3 will silently ignore it. If you update your code above to this, then it should start working as expected:
@jmklix I would consider this a bug on S3's side. They should either accept datetimes with nanosecond precision or respond with a 400 explaining that they don't allow subsecond precision. Would you be able to check if other SDKs have this same issue and file a ticket with the S3 team? |
@jmklix I filed an issue with the S3 maintainers, ticket number is V925584723. |
It appears our date time formatting is incorrect:
|
this is fixed in S3 0.35 (currently queued up to release) |
|
Fix verified |
Describe the bug
When using
GetObjectFluentBuilder.if_modified_since
orset_if_modified_since
to get an object, the object is always returned. I tried both methods, and tried setting theinput
to be both before and after thelast_modified
date of the object (fromGetObjectOutput.last_modified
). In every case, the object is returned.Expected Behavior
The
set_if_modified_since
andif_modified_methods
should only return an object if the object was modified after the provided input.Current Behavior
the
set_if_modified_since
andif_modified_methods
do nothing.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
arch linux
Logs
The text was updated successfully, but these errors were encountered: