Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Issue Links
- links to