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

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

    <bug>
          <bug_id>50782</bug_id>
          
          <creation_ts>2024-06-28 17:33:19 +0300</creation_ts>
          <short_desc>Некорректная работа c json для политики Управляемые закладки в Firefox</short_desc>
          <delta_ts>2024-07-02 13:50:04 +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>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=50706</see_also>
          <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="Nikolai Zurabishvili">zurabishvilinn</reporter>
          <assigned_to name="Valery Sinelnikov">greh</assigned_to>
          <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>248316</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolai Zurabishvili">zurabishvilinn</who>
    <bug_when>2024-06-28 17:33:19 +0300</bug_when>
    <thetext>gpupdate-0.10.4-alt1

Стенды (обновлены до сизифа):

KWorkstation 10.3 x86-64 - клиент
Workstation 10.2 x86-64 - клиент
Server 10.2 office x86-64 - dc

Предусловия:
Развернут Samba ad и введены клиенты в домен

Шаги:
1. В GPUI Перейти Компьютер - Административные шаблоны - Firefox - Управляемые закладки
2. Включить политику и указать закладки, например :

      {
        &quot;name&quot;: &quot;Документация&quot;,
        &quot;url&quot;: &quot;https://docs.altlinux.org&quot;
      },
      {
        &quot;name&quot;: &quot;Wiki&quot;,
        &quot;url&quot;: &quot;https://altlinux.org&quot;
      }

3. Перезагрузить клиент и проверить появление закладок на панели закладок в firefox

Ожидаемый результат: Появилась папка управляемые закладки с указанными закладками 

Фактический результат: Список закладок не поменялся

Доп: В файле /etc/firefox/policies/policies.json некорректный синтаксис json:

{&quot;policies&quot;: {&quot;ManagedBookmarks&quot;: &quot;      {        &apos;name&apos;: &apos;\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f&apos;,        &apos;url&apos;: &apos;https://docs.altlinux.org&apos;      },      {        &apos;name&apos;: &apos;Wiki&apos;,        &apos;url&apos;: &apos;https://altlinux.org&apos;      }&quot;}}


Если вручную указать :

{
  &quot;policies&quot;: {
    &quot;ManagedBookmarks&quot;: [
      {
        &quot;name&quot;: &quot;Документация&quot;,
        &quot;url&quot;: &quot;https://docs.altlinux.org&quot;
      },
      {
        &quot;name&quot;: &quot;Wiki&quot;,
        &quot;url&quot;: &quot;https://altlinux.org&quot;
      }
    ]
  }
}

То закладки корректно отображаются на панели в firefox

Добавление квадратных скобок приводит к багу https://bugzilla.altlinux.org/50706

В p10 в версии gpupdate-0.10.0-alt1 политика вообще не добавляет json в ManagedBookmarks файл /etc/firefox/policies/policies.json выглядит:
{&quot;policies&quot;: {&quot;ManagedBookmarks&quot;: &quot;None&quot;}}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248428</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-07-02 13:50:04 +0300</bug_when>
    <thetext>gpupdate-0.10.5-alt1 -&gt; sisyphus:

 Fri Jun 28 2024 Valery Sinelnikov &lt;greh@altlinux&gt; 0.10.5-alt1
 - Correction of missing entries with a upper case
 - Fixed string processing in date (closes: 50782)
 - Fixed getting correct data for the user for pkcon_runner</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>