Bug 46281 - Не применяется политика ExtensionSettings в Chromium и Yandex
Summary: Не применяется политика ExtensionSettings в Chromium и Yandex
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: gpupdate (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Evgeny Sinelnikov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-26 14:12 MSK by Elena Mishina
Modified: 2023-05-26 14:12 MSK (History)
3 users (show)

See Also:


Attachments
Ошибка в Chromium и Yandex (101.18 KB, image/png)
2023-05-26 14:12 MSK, Elena Mishina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Mishina 2023-05-26 14:12:45 MSK
Created attachment 13274 [details]
Ошибка в Chromium и Yandex

В Chromium и Yandex при обработке политики ExtensionSettings, получаем ошибку (см.вложение):
Ошибка проверки схемы: Policy type mismatch: expected: "dictionary", actual: "string".
 Значение:
{"hdokiejnpimakedhajhdlcegeplioahd": {"installation_mode": "force_installed","update_url": "https://clients2.google.com/service/update2/crx"}, "pioclpoplcdbaefihamjohnefbikjilc": {"installation_mode": "force_installed","update_url": "https://clients2.google.com/service/update2/crx"}}

Содержимое файла /etc/chromium/policies/managed/policies.json:
{"AuthServerAllowlist": "*.test.alt", "DiskCacheSize": 5000, "ExtensionSettings": "{\"hdokiejnpimakedhajhdlcegeplioahd\": {\"installation_mode\": \"force_installed\",\"update_url\": \"https://clients2.google.com/service/update2/crx\"},  \"pioclpoplcdbaefihamjohnefbikjilc\": {\"installation_mode\": \"force_installed\",\"update_url\": \"https://clients2.google.com/service/update2/crx\"}}", "HomepageLocation": "https://docs.altlinux.org", "ShowHomeButton": false}

При этом для Firefox политика успешно применяется, хотя в /etc/firefox/policies/policies.json значения политики тоже записаны как строка:
"ExtensionSettings": "{\n\t\"*\": {\n\t\t\"blocked_install_message\": \"Custom error message\"\n\t},\n\t\"adblockultimate@adblockultimate.net\": {\n\t\t\"installation_mode\": \"force_installed\",\n\t\t\"install_url\": \"file:///home/user/adblockultimate@adblockultimate.net.xpi\"\n\t},\n\t\"rutokenplugin@rutoken.ru\": {\n\t\t\"installation_mode\": \"force_installed\",\n\t\t\"install_url\": \"https://addons.mozilla.org/firefox/downloads/file/3450175/adapter_rutoken_plugin-1.0.5.0.xpi\"\n\t}\n}"