Opening Bucket in Supabase Studio fails due to "New row violates row level security"
Hi,
I have the issue that when opening a bucket in Supabase Studio I get the error "Failed to retrieve folder contents from "public": new row violates row-level security policy, and no files appear.
That is curious because of two facts:
- It only happens on the staging project, which has exactly the same RLS policies as production, where no error occurs.
- When opening a bucket in Studio, there shouldn't be an inserts happening? Where is the new row coming from?
1 Reply
The studio bypasses RLS so the error is likely a grant error that gets a bad message.
Do you have any triggers on storage.objects (although just selecting should not cause a trigger event). Check the Storage Logs. Also try another browser.
Do you have any triggers on storage.objects (although just selecting should not cause a trigger event). Check the Storage Logs. Also try another browser.