lakeFS
lakeFS copied to clipboard
gateway should identify wrong endpoints requests and return a friendly error
Users often set the gateway endpoint in the clients with /api/v1/
which is the openAPI endpoint. The return error in such cases isn't very informative:
java.nio.file.AccessDeniedException: s3a://<my-repo>/<my-branch>/<path-to-file>: getFileStatus on s3a://<my-repo>/<my-branch>/<path-to-file>: com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 4442587FB7D0A2F9; S3 Extended Request ID: null), S3 Extended Request ID: null:403 Forbidden
We should try and identify those cases and return a more informative error.