[
https://issues.apache.org/jira/browse/HDDS-14177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-14177.
-------------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
> OFS#getTrashRoot should use the internal FS username instead of current UGI
> ---------------------------------------------------------------------------
>
> Key: HDDS-14177
> URL: https://issues.apache.org/jira/browse/HDDS-14177
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Filesystem
> Reporter: Ivan Andika
> Assignee: Ivan Andika
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> BasicRootedOzoneFileSystem#getTrashRoot calls OFSPath#getTrashRoot which
> internally use UserGroupInformation#getCurrentUser. Therefore, even if
> FileSystem was initialized under impersonated user (e.g. proxy user), the
> trash root still uses the current UserGroupInformation#getCurrentUser.
> We need fix getTrashRoot so that it uses the internal
> BasicRootedOzoneFileSystem.userName instead.
> Note that BasicOzoneFileSystem#getTrashRoot (o3fs) already correctly uses the
> internal userName.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]