Prioritize getting s3 object with the key, which equals to valid FrostFS OID, rather than getting non-existent object with OID via native protocol for GET and HEAD requests
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
Fallback path to search is needed because
some software may keep FileName attribute
and ignore FilePath attribute during file
upload. Therefore, if this feature is
enabled under certain conditions (for more
information, see gate-configuration.md) a
search will be performed for the FileName
attribute.
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
Add tree service's GetBucketSettings to use them to check for protocol to use (S3 or native). Also add mock implementations for this and GetLatestVersion methods.
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
Some headers might be passed in non-canonical way
by proxy servers, such as 'Authorization' header.
Server does not normalize headers, so we can get
custom object attributes. Therefore, app has to normalize
all non object attribute headers by itself.
Signed-off-by: Alex Vanin <a.vanin@yadro.com>