You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/12/16 11:33:00 UTC
[jira] [Resolved] (HDDS-14177) OFS#getTrashRoot should use the internal FS username instead of current UGI
[ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org