beyondstorage / go-service-qingstor

QingStor Object Storage support for go-storage.
https://beyondstorage.io/docs/go-storage/services/qingstor
Apache License 2.0
1 stars 4 forks source link

CreateAppend not meet GSP-134 Write Behavior Consistency #83

Closed JinnyYi closed 3 years ago

JinnyYi commented 3 years ago

AppendObject doesn't support overwrite. CreateAppend to an existing appendable object with size greater than 0 will get "code":"invalid_argument","message":"position must equal to the current object size, position=0, object size=xxx", which not meet GSP-134: Write Behavior Consistency.

Xuanwo commented 3 years ago

I think we need to remove the file before creating it.

Xuanwo commented 3 years ago

Fixed in #84