Closed thomas-mannschott closed 4 months ago
Essentially the same as #18377, but leaving this as bug.
The error 413 Request Entity Too Large
is coming from your Nginx, where you can change the Nginx config from the default 1MB to something larger: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
This will be fixed in the next release (v50.14). The collection permissions page will skip fetching the updated collection permissions graph on save. If you're making use of the API, you can set skip_graph
to true
in the request body to PUT /api/collection/graph
to achieve this.
Describe the bug When trying to update a collection's permission in the Admin panel > Permissions > Collections, I get a 413 Reponse too long (c.f. below for more details). I have a bit more than a hundred user groups and also hundreds of collections. I also have the same issue when calling PUT /api/collection/graph by hand and could not find an endpoint to only update one collection's permission without having to send the whole graph.
Logs
Find below the Request headers of the API call that is being made while trying to save my permission's changes (huge Content-Length which results in the http 413)
To Reproduce Not sure how this can be easily reproductible, I guess you would need to create hundreds of User groups and collections and try to update a collection's permission.
Expected behavior I am able to update my collection's permission using the UI or having an endpoint to do so.
Information about your Metabase Installation:
We host Metabase on an EC2 instance with an Internal Postgres database.
Severity This is not extremely severe (just a bit annoying) as I can reduce the number of groups I am working with but it won't match our company's organisation so I'll have to do some workarounds.