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

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

    <bug>
          <bug_id>44621</bug_id>
          
          <creation_ts>2022-12-14 16:46:52 +0300</creation_ts>
          <short_desc>Неправильно формируется значение для политики DiskCacheSize для Yandex</short_desc>
          <delta_ts>2025-12-26 12:27:31 +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>REOPENED</bug_status>
          <resolution></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="Elena Mishina">lepata</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>alimektor</cc>
    
    <cc>belayaav</cc>
    
    <cc>greh</cc>
    
    <cc>nir</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>218903</commentid>
    <comment_count>0</comment_count>
    <who name="Elena Mishina">lepata</who>
    <bug_when>2022-12-14 16:46:52 +0300</bug_when>
    <thetext>gpupdate-0.9.12.1-alt1.noarch

1) На сервере установить пакет admx-yandex
# apt-get admx-yandex
# samba-tool gpo admxload -U Administrator
2) В GPUI или в RSAT включить политику &quot;Задать объем кеша в байтах&quot;  DiskCacheSize, установить размер кеша. 
3) Результат: на клиенте политика не применяется, так как в файле /etc/opt/yandex/browser/policies/managed/policies.json получаем:
{ &quot;DiskCacheSize&quot;: null}

хотя при выполнении команды gpoa:
# gpoa --loglevel 0
…
2022-12-14 15:37:40.127|[D00022]| Получен ключ реестра|{&apos;keyname&apos;: &apos;Software\\Policies\\YandexBrowser&apos;, &apos;valuename&apos;: &apos;DiskCacheSize&apos;, &apos;type&apos;: 4, &apos;data&apos;: 104857601}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>226556</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-05-26 15:31:38 +0300</bug_when>
    <thetext>gpupdate-0.9.12.5-alt1 -&gt; sisyphus:

 Fri May 26 2023 Valery Sinelnikov &lt;greh@altlinux&gt; 0.9.12.5-alt1
 - Fixed editing cache volume (DiskCacheSize) in Yandex browser (closes: 44621)
 - The access to caching files has been fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241155</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2024-02-05 12:47:23 +0300</bug_when>
    <thetext>Версии:

- gpupdate-0.9.13.6-alt1
- admx-yandex-browser-118.0-alt1

Воспроизводится из-за изменения https://git.altlinux.org/gears/g/gpupdate.git?p=gpupdate.git;a=commit;h=c6b6cdfff36d99698f42baee97b765e9db24faf1:

-                            &apos;DiskCacheSize&apos;,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241196</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-02-06 09:58:59 +0300</bug_when>
    <thetext>gpupdate-0.9.13.7-alt1 -&gt; sisyphus:

 Mon Feb 05 2024 Valery Sinelnikov &lt;greh@altlinux&gt; 0.9.13.7-alt1
 - Editing the cache size in the Yandex browser has returned (closes: 44621)
 - Removed unnecessary calls to subprocess</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279649</commentid>
    <comment_count>4</comment_count>
    <who name="Белая Алёна">belayaav</who>
    <bug_when>2025-12-26 12:27:31 +0300</bug_when>
    <thetext>gpupdate-0.14.0-alt1
admx-yandex-browser-138.0-alt1

Ошибка снова появилась:
|core[D0000022]| Получен ключ реестра|{&apos;keyname&apos;: &apos;Software\\Policies\\YandexBrowser&apos;, &apos;valuename&apos;: &apos;DiskCacheSize&apos;, &apos;type&apos;: 4, &apos;data&apos;: 105857601}

# cat /etc/opt/yandex/browser/policies/managed/policies.json | grep Cache
{&quot;DiskCacheSize&quot;: null}

Вероятно, проблема появилась в том же файле, что и раньше, после этого коммита: https://git.altlinux.org/gears/g/gpupdate.git?p=gpupdate.git;a=commit;h=1a245a259f46c43d08112bf057e2ca889e0e5c09

Дифф:
https://git.altlinux.org/gears/g/gpupdate.git?p=gpupdate.git;a=commitdiff;h=1a245a259f46c43d08112bf057e2ca889e0e5c09

-                            &apos;DiskCacheSize&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>