<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>47135</bug_id>
          
          <creation_ts>2023-08-06 15:50:11 +0300</creation_ts>
          <short_desc>Не выполняет локальные скрипты (‘Script’ object has no attribute ‘number’)</short_desc>
          <delta_ts>2026-10-15 16:21:10 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gpupdate</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Shesteperov">alimektor</reporter>
          <assigned_to name="Valery Sinelnikov">greh</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>glinkinvd</cc>
    
    <cc>greh</cc>
    
    <cc>nir</cc>
    
    <cc>rezvjakovne</cc>
    
    <cc>senkd</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>230951</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-08-06 15:50:11 +0300</bug_when>
    <thetext>Выполняю проверку
https://www.altlinux.org/Групповые_политики/Управление_logon-скриптами,
там есть указание про локальные скрипты.

Версия

-   gpupdate-0.9.12.6-alt1

Стенд

-   ALT Server в качестве Samba DC
-   ALT Workstation в качестве клиента

Шаги воспроизведения

1.  На клиенте создать локальный скрипт:

    echo &apos;#!/usr/bin/env bash&apos; &gt; /usr/bin/startup-log &amp;&amp; \
    echo &apos;echo [/usr/bin/startup-log] $(date): ${@} &gt;&gt; /var/log/date.log&apos; &gt;&gt; /usr/bin/startup-log &amp;&amp; \
    chmod +x /usr/bin/startup-log

2.  Перейти в Компьютер → Настройки системы → Скрипты.

3.  Щёлкнуть левой кнопкой мыши на политике Запуск.

4.  Нажать Добавить.

5.  Нажать Обзор, выбрать файл /usr/bin/startup-log

6.  Параметр сценария указать как hello local startup

7.  Нажать ОК.

8.  Нажать Применить, затем OK.

9.  Перезапустить систему клиента:

        # reboot

10. Подключиться по ssh к клиенту (ssh root@client) и проверить
    применение политик:

        # cat /var/log/date.log

Ожидаемый результат: Файл создан и в нём есть информация.

Фактический результат: Файла нет, политика не применилась.

В логах характерное:

    [E00028]| Error merging machine part of GPT|{&apos;gpt&apos;: &apos;Default Domain Policy&apos;, &apos;msg&apos;: &quot;&apos;Script&apos; object has no attribute &apos;number&apos;&quot;}

Чревато тем, что блокирует выполнение следующих сценариев после себя.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263598</commentid>
    <comment_count>1</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2025-04-25 16:13:56 +0300</bug_when>
    <thetext>Актуально для gpupdate-0.13.2-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272886</commentid>
    <comment_count>2</comment_count>
    <who name="Резвяков Никита">rezvjakovne</who>
    <bug_when>2025-09-22 10:37:21 +0300</bug_when>
    <thetext>Актуально для:
ALT Server 11.0 x86_64 в качестве Samba DC
Alt Workstation K 11.1.1 x86_64 в качестве клиента

Версия пакета:
gpupdate-0.13.2-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284953</commentid>
    <comment_count>3</comment_count>
    <who name="Kirill Sen">senkd</who>
    <bug_when>2026-04-01 20:57:55 +0300</bug_when>
    <thetext>Также актуально для версии пакета:
gpupdate-0.14.2-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>302519</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-10-15 16:21:10 +0300</bug_when>
    <thetext>gpupdate-0.16.4-alt1 -&gt; sisyphus:

Thu Oct 15 2026 Valery Sinelnikov &lt;greh@altlinux&gt; 0.16.4-alt1
- Added:
  gpupdate-machine-run for commands with isolated machine Kerberos credentials
  (closes: 60548)
  GPO-configurable user policy refresh on SSH login (closes: 53161)
  Chromium 153 integer-valued policy exceptions
  Optional strict exit status for policy scripts
- Fixed:
  User file policies creating root-owned home directories (closes: 48946)
  KDE policy application without a graphical environment (closes: 60718)
  Missing icon and comment in merged machine shortcuts (closes: 60563)
  GNOME and XFCE shortcut trust metadata (closes: 56019)
  Absolute local script paths (closes: 47135)
  Structured Chromium and Yandex JSON preservation through dconf
  (closes: 46281)
  Yandex numeric policy types for delays, limits and import settings
  ADMX numeric-value extraction for decimal elements and enums
  Packaged display manager plugin discovery and safe GDM background updates
  LightDM greeter detection and native INI configuration
  User polkit rule isolation, plugin execution and privilege-worker IPC
  GPO cache identity, FreeIPA refresh handling and loopback precedence
  Policy-scoped and per-user apply-once state, managed-file and hidden cleanup
  Cached policy application
  File-operation safety, bounded worker IPC and command-group cleanup
  Kerberos credential isolation and LAPS retry post-actions
  Native DWORD handling in Firewall and NTP, standalone GSettings lock updates
  Script preparation failures and active timer shutdown when disabling gpupdate
  Browser policy publication and GDM restoration across theme upgrades
  Configuration preservation on upgrade and policy execution error reporting
- Packaging:
  Ship shared applier templates with gpoa-lib
- Documentation:
  Clarified plugin translation paths and documented regression test scenarios</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>