Bug 43589 - Падение приложения при нажатии на Подключить как считыватель
Summary: Падение приложения при нажатии на Подключить как считыватель
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: token-manager (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-23 12:14 MSK by Alexander Makeenkov
Modified: 2022-08-23 12:14 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 Alexander Makeenkov 2022-08-23 12:14:27 MSK
Версия пакета:
token-manager-0.12-alt9

Предварительное условие: подключить к системе токен (например, Рутокен ЭЦП)

Шаги воспроизведения:
Запустить приложение, в списке хранилищ выбрать токен и нажать кнопку Подключить как считыватель

Получаемый результат:
Приложение падает, в терминале следующая ошибка:
Traceback (most recent call last):
  File "/usr/bin/token-manager.py", line 786, in set_reader
    if set_as_reader(self.token):
  File "/usr/bin/token-manager.py", line 431, in set_as_reader
    cpconfig = subprocess.Popen(['/usr/bin/cpconfig-%s' % arch, '-hardware', 'reader', '-add', token],
  File "/usr/lib64/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Нет такого файла или каталога: '/usr/bin/cpconfig-amd64'
/usr/bin/token-manager: строка 3:  4714 Аварийный останов         python3 /usr/bin/token-manager.py $@

В самом пакете есть только файл cpconfig-ia32, а cpconfig-amd64 нет, хотя в апстриме есть https://github.com/bmakarenko/token-manager