-
Notifications
You must be signed in to change notification settings - Fork 181
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
Cannot get attributes for object #536
Comments
Correct, this is currently not implemented. |
ah - looked at the documentation again - I can add some of the implementation.
Not sure if partial responses work - I'll check. |
implemented |
@ben-dale how and why do you use this API? The implementation for the "HeadObject" attributes is straightforward, but I struggle to understand how the "ListParts" attributes are supposed to work. I can't get a test case against the S3 API to work. |
If it helps, we are only using getObjectAttributes instead of headObject because the latter is not supported in the AWS java SDK 1.x that we're still using. So if getObjectAttributes partially worked by only including the headObject attributes that would be enough for us :) |
This adds support for the object part of the API, the "parts" part is currently not supported. Fixes #536
This adds support for the object part of the API, the "parts" part is currently not supported. Fixes #536
This adds support for the object part of the API, the "parts" part is currently not supported. Fixes #536
👋 I suspect this feature might not be implemented, but wanted to raise here, in case I'm missing something!
https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html
I tried to retrieve object attributes manually using S3mock and the documentation above, but this was unsuccessful. Making this GET request returns the object contents, instead of the attributes:
The error I receive when using the AWS SDK:
Could not parse XML response. software.amazon.awssdk.core.exception.SdkClientException: Could not parse XML response. at app//software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:102) at app//software.amazon.awssdk.core.exception.SdkClientException.create(SdkClientException.java:47) at app//software.amazon.awssdk.protocols.query.unmarshall.XmlDomParser.parse(XmlDomParser.java:59)
Thanks!
The text was updated successfully, but these errors were encountered: