ashishkumar50 commented on PR #6218:
URL: https://github.com/apache/ozone/pull/6218#issuecomment-1943389513

   > One can argue here that `vol1/bucket1/xyz/def/` was not created by the 
user hence he should not be able to delete it, Although I'm not sure this 
change would break any other functionality, I think this issue has been always 
there and not recently introduced. The key will be deleted when directory is 
deleted from FS interface.
   
   Yes correct it seems issue is from either long time or from beginning, and 
there are some confusions as well.
   When user executes `ozone sh key list vol1/bucket1` it shows intermediate 
directories as well.
   But during delete it shows `KEY_NOT_FOUND` but it is listed in key list.
   
   If we don't want to allow this delete, I think in that case it should fail 
in the client itself if user is trying to delete a key which is having trailing 
slash and show appropriate message as "Directory can be deleted only through FS 
interface". 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to