Unable to save permissions changes for saved questions

#1

Saving permissions on a saved question is returning an error. I have no idea why but I can’t seem to save any permissions changes for saved questions. See log below.

I am however able to save permissions changes for

Log

Apr 19 21:22:45 ERROR metabase.middleware.log :: PUT /api/permissions/graph 500 955 µs (0 DB calls) Jetty threads: 8/50 (3 busy, 4 idle, 0 queued) (54 total active threads)
{:value
[{:revision 6,
:groups
{1 {1 {:native :none, :schemas :none}, 2 {:native :none, :schemas :none}},
2 {1 {:native :write, :schemas :all}, 2 {:native :write, :schemas :all}},
4 {1 {:native :none, :schemas :none}, 2 {:native :write, :schemas :all}},
33 {1 {:native :none, :schemas :none}, 2 {:native :write, :schemas :all}},
34 {1 {:native :none, :schemas :none}, 2 {:native :none, :schemas :none}, -1337 {:native nil, :schemas {“Marketing” :all}}}}}],
:error [(named {:groups {34 {(not (“Integer greater than zero” -1337)) invalid-key}}} new-graph)],
:message “Input to update-graph! does not match schema: \n\n\t [(named {:groups {34 {(not (“Integer greater than zero” -1337)) invalid-key}}} new-graph)] \n\n”,
:type clojure.lang.ExceptionInfo,
:stacktrace
("–> models.permissions$fn__26197$update_graph_BANG___26206.invoke(permissions.clj:600)"
“api.permissions$fn__58920.invokeStatic(permissions.clj:80)”
“api.permissions$fn__58920.invoke(permissions.clj:68)”
“middleware.auth$enforce_authentication$fn__42958.invoke(auth.clj:14)”
“routes$fn__60869$fn__60870.doInvoke(routes.clj:113)”
“middleware.exceptions$catch_uncaught_exceptions$fn__42871.invoke(exceptions.clj:104)”
“middleware.exceptions$catch_api_exceptions$fn__42868.invoke(exceptions.clj:92)”
“middleware.log$log_api_call$fn__42789$fn__42790.invoke(log.clj:168)”
“middleware.log$log_api_call$fn__42789.invoke(log.clj:162)”
“middleware.security$add_security_headers$fn__42832.invoke(security.clj:102)”
“middleware.json$wrap_json_body$fn__43041.invoke(json.clj:61)”
“middleware.json$wrap_streamed_json_response$fn__43059.invoke(json.clj:97)”
“middleware.session$bind_current_user$fn__43173$fn__43174.invoke(session.clj:188)”
“middleware.session$do_with_current_user.invokeStatic(session.clj:171)”
“middleware.session$do_with_current_user.invoke(session.clj:165)”
“middleware.session$bind_current_user$fn__43173.invoke(session.clj:187)”
“middleware.session$wrap_current_user_id$fn__43162.invoke(session.clj:156)”
“middleware.session$wrap_session_id$fn__43147.invoke(session.clj:118)”
“middleware.auth$wrap_api_key$fn__42966.invoke(auth.clj:27)”
“middleware.misc$maybe_set_site_url$fn__42932.invoke(misc.clj:54)”
“middleware.misc$bind_user_locale$fn__42935.invoke(misc.clj:70)”
“middleware.misc$add_content_type$fn__42922.invoke(misc.clj:29)”
“middleware.misc$wrap_gzip$fn__42950.invoke(misc.clj:97)”)}

#2

Hi @rbalsickrecurly
Which version?
Are you talking about trying to modify permissions under Settings > Admin > Permissions > anything to do with Saved Questions? If yes, then you cannot make changes to that, since it’s a system controlled “database”.
https://github.com/metabase/metabase/issues/5610
https://github.com/metabase/metabase/issues/7996

#3

I think those other issues get at the confusion. If you can’t change them then they shouldn’t be show in the admin panel as there is no point.

#4

Completely agree with you - go and upvote issues by clicking :+1: on the first post.