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

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

    <bug>
          <bug_id>47838</bug_id>
          
          <creation_ts>2023-10-04 18:31:11 +0300</creation_ts>
          <short_desc>Некорректно обрабатывается переменная $PGMETHOD в /etc/init.d/postgresql</short_desc>
          <delta_ts>2023-10-10 08:15:52 +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>postgresql16</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="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>alimektor</cc>
    
    <cc>grenka</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>234357</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2023-10-04 18:31:11 +0300</bug_when>
    <thetext>В следующем участке кода:

&gt; if [ -z &quot;PGMETHOD&quot; ]
&gt; then
&gt;    PGMETHOD=&quot;scram-sha-256&quot;
&gt; fi

В условии должно быть $PGMETHOD, иначе при пустом параметре ожидаемой замены на scram-sha-256 не произойдёт.

Код находится в altlinux/postgresql.init.in в пакетах:

postgresql16 (sisyphus)
postgresql15 (sisyphus)
postgresql14 (sisyphus)
postgresql13 (sisyphus)
postgresql12 (sisyphus)
postgresql11 (sisyphus)

Для postgresql10 (есть только в p10) не актуально, т. к. там обрабатывается только $PGDATA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234532</commentid>
    <comment_count>1</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-10-09 10:25:07 +0300</bug_when>
    <thetext>*** Bug 47883 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234587</commentid>
    <comment_count>2</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-10-10 08:15:52 +0300</bug_when>
    <thetext>* Mon Oct  9 20:00:00 2023 Alexei Takaseev &lt;taf@altlinux.org&gt; 16.0-alt2
- Fix typo (Fixes ALT 47838)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>