lakeFS icon indicating copy to clipboard operation
lakeFS copied to clipboard

[Bug]: Bad error message in GUI when unauthorized and trying to display README.md

Open arielshaqed opened this issue 1 year ago • 0 comments

What happened?

What actually happened, including error codes if applies.

Steps to Reproduce:

  1. Configure (on lakeFS.Cloud) your user not to be allowed to read README.md. Stanza for policy:
    {
      "action": [
        "fs:*"
      ],
      "effect": "deny",
      "resource": "arn:lakefs:fs:::repository/*/README.md"
    }
    
  2. lakectl gives correct error message:
    $ lakectl fs cat lakefs://sample-repo/main/README.md
    insufficient permissions
    401 Unauthorized
    
  3. WebUI gives minified or otherwise weird error message: "objects" tab trying to show README.md but actually showing a pink error box saying "Kn"

Expected behavior

Pink error box saying "Insufficnet permissions" or similar.

lakeFS version

1.22.0

How lakeFS is installed

lakeFS cloud dev installation

Affected clients

webui

Relevant log output

No response

Contact details

[email protected]

arielshaqed avatar May 13 '24 05:05 arielshaqed