awslabs / awslabs/aws-sdk-rust
Enum aws_sdk_s3::error::GetObjectErrorKind doesn't include NoSuchBucket
- Dominant language
- Rust
- Stars
- 3.3k
- Forks
- 290
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 3
Description
### What is the problem?
Per https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/error/enum.GetObjectErrorKind.html, enum `aws_sdk_s3::error::GetObjectErrorKind` doesn't include `NoSuchBucket`. However, the aws-cli call `aws s3api get-object --bucket NoSuchBucket --key file.txt /dev/null` produces `An error occurred (NoSuchBucket) when calling the GetObject operation: The specified bucket does not exist`.
### Version
aws-sdk-s3 v0.9.0
### Platform
Darwin localhost Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64
### AWS Services
S3
### Description
I would expect `aws_sdk_s3::error::GetObjectErrorKind` (and possibly other `Kind`s) to include the `NoSuchBucket` variant.
### Logs
_No response_
Contributor guide
Research direction
Start with the documented aws_sdk_s3::error::GetObjectErrorKind enum and reproduce the aws-cli get-object request described in the issue. Compare the S3 service error returned for NoSuchBucket with the SDK's available variants, then check whether other related Kind enums have the same gap. Done means the SDK represents this error consistently with the service response and the relevant behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, rust
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100