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

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

    <bug>
          <bug_id>49883</bug_id>
          
          <creation_ts>2024-04-03 15:45:34 +0300</creation_ts>
          <short_desc>curl --fail возвращает код ошибки 56 вместо 22</short_desc>
          <delta_ts>2024-07-01 11:23:57 +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>curl</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="Nikolai Zurabishvili">zurabishvilinn</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>egori</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>244036</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolai Zurabishvili">zurabishvilinn</who>
    <bug_when>2024-04-03 15:45:34 +0300</bug_when>
    <thetext>curl-8.7.1-alt1

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

KWorkstation 10.2.1 x86-64
Workstation 10.2 x86-64
Education 10.2 KDE x86-64
Education 10.2 x86-64
Server 10.2 office x86-64

Шаги:
1. $ curl https://www.booleanworld.com/404 -fsSo file.txt; echo $?

Фактический результат: curl: (56) The requested URL returned error: 404
56

Ожидаемый результат: curl: (22) The requested URL returned error: 404
22

Доп: $ curl --fail-with-body https://www.booleanworld.com/404 -sSo file.txt; echo $? возвращает корректный код ошибки : curl: (22) The requested URL returned error: 404
22

В апстриме не воспроизводится</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244038</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolai Zurabishvili">zurabishvilinn</who>
    <bug_when>2024-04-03 15:55:11 +0300</bug_when>
    <thetext>из $ man curl:
...
22     HTTP page not retrieved. The requested URL was not found or returned another error with the HTTP  error  code  being  400  or above. This return code only appears if -f, --fail is used.
...
56     Failure in receiving network data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248358</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-07-01 11:23:57 +0300</bug_when>
    <thetext>curl-8.8.0-alt1 -&gt; sisyphus:

 Mon Jul 01 2024 Anton Farygin &lt;rider@altlinux.ru&gt; 8.8.0-alt1
 - 8.7.1 -&gt; 8.0.0 (Closes: #49883)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>