parsing error in GetBucketLifecycleConfiguration when <ExpiredObjectDeleteMarker> tag is empty #1690
Labels
bug
This issue is a bug.
closed-for-staleness
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
s
Effort estimation: small
Describe the bug
The library throws an error in API GetBucketLifecycleConfiguration when the S3 storage returns a empty tag.
Expected Behavior
The library should not throw error when tag is is empty.
for the same output, the AWS S3 CLI is able to properly parse and return the bucket lifecycle.
Current Behavior
Below error is thrown:
Reproduction Steps
steps to reproduce
go code to reproduce issue
Possible Solution
This #1681 should solve it, but it was pointed out that I had done changes in generated code.
Additional Information/Context
There can be one argument that the S3 storage (ODF/Noobaa) should fix on their side and not return an empty tag.
<ExpiredObjectDeleteMarker></ExpiredObjectDeleteMarker>
I am going to raise a ticket for them too.
AWS Go SDK V2 Module Versions Used
Compiler and Version used
go version go1.17.6 linux/amd64
Operating System and version
(virtualbox) Linux prem-lubuntu 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: