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 2022/11/21 16:08:00 UTC

[jira] [Resolved] (HDDS-7266) Ozone fs does not show directory exists if user does not have permission to access

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

Neil Joshi resolved HDDS-7266.
------------------------------
    Resolution: Fixed

> Ozone fs does not show directory exists if user does not have permission to access
> ----------------------------------------------------------------------------------
>
>                 Key: HDDS-7266
>                 URL: https://issues.apache.org/jira/browse/HDDS-7266
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Neil Joshi
>            Priority: Major
>
> Using ozone fs with {*}_ranger authorizer_{*}, users having a deny policy for a directory that list the directory are not displayed when listing , ozone fs -ls /vol1.  This is *_unexpected_* and can alarm the users that the directory and its contents have been lost.
> What *_is expected_* is showing the directory even if the user does have access permissions, but when the user accesses the directory it receives a permission error.
>  
>  
> {code:java}
> given volume: vol1, bucket: bucket1 and key: hosts,
> /vol1/bucket1/hosts
> when bucket1 is part of a ranger deny policy for a user what occurs is:
> $ozone sh key info /vol1/bucket1/hosts
> PERMISSION_DENIED User <user> doesn't have READ permission to access bucket Volume:vol1 Bucket:bucket1
> This is what is expected. For ozone fs accesses however what occurs is:
> $ozone fs -ls /vol1/bucket1/
> ls: /vol1/bucket1/: No such file or directory 
> {code}
>  



--
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