Skip to content

Commit 4c0c2e2

Browse files
add forgotten block
1 parent f877269 commit 4c0c2e2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

gen3workflow/routes/s3.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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}'"

0 commit comments

Comments
 (0)