File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,6 @@ async def s3_endpoint(path: str, request: Request):
184184 # get the name of the user's bucket and ensure the user is making a call to their own bucket
185185 logger .info (f"Incoming S3 request from user '{ user_id } ': '{ request .method } { path } '" )
186186 user_bucket = aws_utils .get_safe_name_from_hostname (user_id )
187- if request .method == "GET" and path == "s3" :
188- err_msg = f"'ls' not supported, use 'ls s3://{ user_bucket } ' instead"
189- logger .error (err_msg )
190- raise HTTPException (HTTP_400_BAD_REQUEST , err_msg )
191187 request_bucket = path .split ("?" )[0 ].split ("/" )[0 ]
192188 if request_bucket != user_bucket :
193189 err_msg = f"'{ path } ' (bucket '{ request_bucket } ') not allowed. You can make calls to your personal bucket, '{ user_bucket } '"
You can’t perform that action at this time.
0 commit comments