Rakesh Radhakrishnan created HDDS-6708:
------------------------------------------
Summary: [FSO] Make normalize keyPath on key rename request
Key: HDDS-6708
URL: https://issues.apache.org/jira/browse/HDDS-6708
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Rakesh Radhakrishnan
Assignee: Rakesh Radhakrishnan
Noticed an extra {{"/"}} after the bucket name on {{OzoneObjInfo#getPath()}}
value, which affects OM#checkACL during keyPath rename.
+Input:+ {{srcKey="/root/dir1/key-1"}} and {{dstKey="/root/dir2/key-2"}}
Now, OM internally invokes OM#checkACL and access {{OzoneObjInfo#getPath()}}
function, which constructs the absolute key path name with an extra {{"/"}}
slash.
{{OzoneObjInfo#getPath()}} returns {{"vol1/buck1//root/dir1/key-1"}}
+Root Cause:+ Path normalization missed in o3fs#rename.
+Proposed Fix:+ Convert #pathToKey() on ozone client and perform
#validateAndNormalizeKey() at OM RenameRequest.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]