ERROR permissions.parse

I have successfully added a custom Databricks driver plugin from this source.

I was able to add the database and can view the tables within it. However, when I attempt to change the permissions, it results in an infinite loading screen. The error message indicates 'error parsing tree,' although there doesn't appear to be any tree manipulation in the custom driver.

Here is my Diagnostic Info and the logs from when I navigate to 'Admin settings -> Permissions -> Databases -> {my database added using the custom driver}:

{
  "browser-info": {
    "language": "ko-KR",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.22+7",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.22",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.22+7",
    "os.name": "Linux",
    "os.version": "5.15.148",
    "user.language": "en",
    "user.timezone": "UTC"
  },
  "metabase-info": {
    "databases": [
      "postgres",
      "sparksql-databricks-v2",
      "h2"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "15.5"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-04-22",
      "tag": "v0.49.7",
      "hash": "f0ff786"
    },
    "settings": {
      "report-timezone": null
    }
  }
}
[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:48+09:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/2 200 6.6 ms (3 DB calls) App DB connections: 1/7 Jetty threads: 3/50 (4 idle, 0 queued) (50 total active threads) Queries in flight: 0 (0 queued)
[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:48+09:00 ERROR metabase.models.permissions.parse Error parsing permissions tree Parse error at line 1, column 23:
/collection/namespace/snippets/root/
                      ^
Expected one of:
:end-of-string
"read"

[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:48+09:00 ERROR metabase.models.permissions.parse Error parsing permissions tree Parse error at line 1, column 1:
/application/subscription/
^
Expected one of:
"/" (followed by end-of-string)
"/query/db/"
"/data/db/"
"/collection/"
"/details"
"/data-model"
"/download"
"/block/db/"
"/db/"
"/execute/"

[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:48+09:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/1 200 13.0 ms (3 DB calls) App DB connections: 1/7 Jetty threads: 3/50 (4 idle, 0 queued) (50 total active threads) Queries in flight: 0 (0 queued)
[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:49+09:00 ERROR metabase.models.permissions.parse Error parsing permissions tree Parse error at line 1, column 23:
/collection/namespace/snippets/root/
                      ^
Expected one of:
:end-of-string
"read"

[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:49+09:00 ERROR metabase.models.permissions.parse Error parsing permissions tree Parse error at line 1, column 1:
/application/subscription/
^
Expected one of:
"/" (followed by end-of-string)
"/query/db/"
"/data/db/"
"/collection/"
"/details"
"/data-model"
"/download"
"/block/db/"
"/db/"
"/execute/"

[0692d2cd-103a-4c66-86be-6f6eef401485] 2024-05-20T10:27:49+09:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/1 200 13.2 ms (3 DB calls) App DB connections: 1/7 Jetty threads: 3/50 (4 idle, 0 queued) (50 total active threads) Queries in flight: 0 (0 queued)

I would suggest engaging with the driver developer on Github to see if they can help you identify what's causing the problem.

I know this doesn't help today but an officially supported Databricks driver is expected in the next release or two.