Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change permissions when Language set to Swedish #43432

Open
niclas-evidence-operations opened this issue May 31, 2024 · 0 comments
Open
Labels
Administration/Permissions Collection or Data permissions .Backend Customization/i18n Priority:P2 Average run of the mill bug .Team/AdminWebapp Admin and Webapp team Type:Bug Product defects

Comments

@niclas-evidence-operations

Describe the bug
When the Instance Language is set to Swedish, I cannot change the Permissions

Logs
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:34+02:00 DEBUG metabase.server.middleware.log GET /api/permissions/group 200 54.1 ms (2 DB-anrop) App DB-anslutningar: 2/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:34+02:00 DEBUG metabase.server.middleware.log GET /api/user 200 250.4 ms (4 DB-anrop) App DB-anslutningar: 2/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:34+02:00 DEBUG metabase.server.middleware.log GET /api/permissions/membership 200 57.1 ms (1 DB-anrop) App DB-anslutningar: 2/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:39+02:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/2 200 79.7 ms (3 DB-anrop) App DB-anslutningar: 2/15 Jetty threads: 4/50 (3 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:39+02:00 ERROR metabase.models.permissions.parse Fel i analysen av behörighetsträdet Parse error at line 1, column 23:
/collection/namespace/snippets/root/
^
Expected one of:
:end-of-string
"read"

[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:39+02:00 ERROR metabase.models.permissions.parse Fel i analysen av behörighetsträdet 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/"

[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:39+02:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/1 200 170.5 ms (3 DB-anrop) App DB-anslutningar: 1/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:41+02:00 DEBUG metabase.server.middleware.log GET /api/permissions/graph/group/3 200 85.7 ms (3 DB-anrop) App DB-anslutningar: 1/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:46+02:00 DEBUG metabase.server.middleware.log GET /api/database/3/metadata 200 692.7 ms (9 DB-anrop) App DB-anslutningar: 2/15 Jetty threads: 3/50 (4 idle, 0 queued) (totalt 77 aktiva trådar) Frågor på gång: 0 (0 köade)
[cae9af17-8d1a-4d60-aa37-c50cd0dc9f9e] 2024-05-31T09:36:53+02:00 DEBUG metabase.server.middleware.log PUT /api/permissions/graph 400 971.4 ms (16 DB-anrop)
"You cannot create or revoke permissions for the 'Admin' group."

To Reproduce
Steps to reproduce the behavior:

  1. Make sure the language is set to Swedish
  2. Click on Permissions
  3. Click on All Users or any other non-Admin group
  4. Set one database to "No Self-service"
  5. Try to save.
  6. Then you get "You cannot create or revoke permissions for the 'Admin' group

Expected behavior
Should be able to save the changes

Screenshots
image

Severity
An bug but work-around is to switch to English.

Additional context
Add any other context about the problem here.

Metabase Diagnostic Info

{
  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.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.23+9",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.23",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.23+9",
    "os.name": "Linux",
    "os.version": "5.15.153.1-1.cm2",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "sqlserver",
      "h2"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "16.2"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-05-28",
      "tag": "v0.49.13",
      "hash": "de28e83"
    },
    "settings": {
      "report-timezone": "Europe/Stockholm"
    }
  }
}
@dosubot dosubot bot added the Type:Bug Product defects label May 31, 2024
@paoliniluis paoliniluis added Priority:P2 Average run of the mill bug Customization/i18n .Backend Administration/Permissions Collection or Data permissions labels May 31, 2024
@darksciencebase darksciencebase added the .Team/AdminWebapp Admin and Webapp team label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Administration/Permissions Collection or Data permissions .Backend Customization/i18n Priority:P2 Average run of the mill bug .Team/AdminWebapp Admin and Webapp team Type:Bug Product defects
Projects
None yet
Development

No branches or pull requests

3 participants