mirror of
https://github.com/versity/versitygw.git
synced 2026-01-08 20:43:07 +00:00
Fixes #1215 Fixes #1216 `PutObject`, `CopyObject` and `CreateMultipartUpload` accept tag string as an http request header which should be url-encoded. The tag string should be a valid url-encoded string and each key/value pair should be valid, otherwise they should fail with `APIError`. If the provided tag set contains duplicate `keys` the calls should fail with the same `InvalidURLEncodedTagging` error. Not all url-encoded characters are supported by `S3`. The tagging string should contain only `letters`, `digits` and the following special chars: - `-` - `.` - `/` - `_` - `+` - ` `(space) And their url-encoded versions: e.g. `%2F`(/), `%2E`(.) ... . If the provided tagging string contains invalid `key`/`value`, the calls should fail with the following errors respectively: `invalid key` - `(InvalidTag) The TagKey you have provided is invalid` `invalid value` - `(InvalidTag) The TagValue you have provided is invalid`