You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Neil Joshi (Jira)" <ji...@apache.org> on 2023/02/08 04:41:00 UTC

[jira] [Updated] (HDDS-7922) [FSO] S3G folder support fso layout filestatus s3A compatibility

     [ https://issues.apache.org/jira/browse/HDDS-7922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil Joshi updated HDDS-7922:
-----------------------------
    Attachment: FSO S3G folder support - s3A compatibility for filestatus HEAD requests and GET .png

> [FSO] S3G folder support fso layout filestatus s3A compatibility
> ----------------------------------------------------------------
>
>                 Key: HDDS-7922
>                 URL: https://issues.apache.org/jira/browse/HDDS-7922
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Neil Joshi
>            Priority: Major
>         Attachments: FSO S3G folder support - s3A compatibility for filestatus HEAD requests and GET .png
>
>
> Currently there exists an incompatibility with file stats issued with s3a adapter through s3-gateway on directories created with fso layout.  
> S3a expects file status (exist) queries on directories issued through s3 gateway to have path names ending with a '/' slash.  The s3gateway returns directory exists on directory paths with and without a trailing slash due to internal path normalization (eg. path/dir1 == path/dir1/).
>  
> File exists, file status is queried by s3A over s3gateway with Head requests (head-object s3 requests).  Proposed is an implementation to resolve the issue and to cover corner cases to support fso folders over s3g by modifying the s3g ObjectEndpoint to check whether the requested path is a directory, if so, to only return ok if path has trailing '/'.  This would support s3 Head requests and Get requests.  The type of object, where file or directory is determined in the head-object and get-object request through checking the keyInfo (modifying the OzoneKey and OzoneKeyDetails) isFile().
>  
> A sample sequence diagram for this is attached.    
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org