Bug 56864 - backend3 не отвечает на запрос в образе server minimal
Summary: backend3 не отвечает на запрос в образе server minimal
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: alterator-module-backend3 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Иван Савин
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-14 19:01 MSK by Белая Алёна
Modified: 2025-11-14 19:01 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Белая Алёна 2025-11-14 19:01:29 MSK
alterator-module-backend3-0.2.0-alt1
alterator-5.4.5-alt1

Alt Server 11.0 x86_64 minimal, обновленный до Sisyphus

Шаги воспроизведения:
1. Установить пакеты: 
alterator-module-backend3 alterator
2. Создать файл .backend для проверки и policy для него: 

# cat>/etc/alterator/backends/system/bk3_1.backend<<EOF
type = "Backend"
module = "backend3"
name = "exampleb"
#interface = "backend3.example1"
interface = "example1"
action_id = "ru.basealt.alterator"
thread_limit = 1

[methods.menu]
backend3 = "menu"
stdout_strings = true
stdout_byte_limit = 7000000
thread_limit = 1
[methods.menu.environment._objects]
default = "avail_modules"
[methods.menu.environment.language]
default = "ru_RU"
[methods.menu.environment.action]
default = "list"
EOF

# cat>/usr/share/polkit-1/actions/ru.basealt.alterator.backend.policy<<EOF
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="ru.basealt.alterator">
<description>Alterator Authentication dialogue</description>
<message>ru.basealt.alterator requires authentication.</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
EOF

Запросить информацию от метода menu:
# dbus-send --system --print-reply --dest='org.altlinux.alterator'  '/org/altlinux/alterator/exampleb' org.altlinux.alterator.example1.menu dict:string:string:"ui","qt","expert_mode","0"


Результат:
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Ожидаемый результат: список записей словаря в виде "значение":"ключ", например: 
method return time=1763042856.105183 sender=:1.145 -> destination=:1.217 serial=26 reply_serial=2
   array [
      array [
         dict entry(
            string "uri"
            string "/datetime/system"
         )
         dict entry(
            string "help"
            string "datetime"
         )
		...
		
В образах: 
Alt Education 11.0 x86_64
Alt Workstation K 11.1.1 x86_64
Alt Workstation 11.1 x86_64
успешно приходит ответ в виде списка.

Воспроизводится в Р11