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

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

    <bug>
          <bug_id>45641</bug_id>
          
          <creation_ts>2023-03-24 05:22:32 +0300</creation_ts>
          <short_desc>При распаковке zip архива сообщает об уже существующем файле</short_desc>
          <delta_ts>2024-03-19 11:20:09 +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>p7zip</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="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>ilyakurdyukov</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>223313</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2023-03-24 05:22:32 +0300</bug_when>
    <thetext>При распаковка zip-архива новая версия 7-zip стала предварительно создавать пустой файл и потом натыкаться на него.

У меня воспроизводится так:

$ wget https://github.com/Etersoft/eepm/archive/refs/heads/master.zip &amp;&amp; 7z x master.zip

...

Would you like to replace the existing file:
  Path:     ./eepm-master/LICENSE
  Size:     0 bytes
  Modified: 2023-03-24 05:14:54
with the file from archive:
  Path:     eepm-master/LICENSE
  Size:     34520 bytes (34 KiB)
  Modified: 2023-03-23 05:11:20
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? 


На другом архиве (с одним файлом внутри) проблема проявлялась только при распаковке в каталоге определённой длины:

$ mkdir /tmp/1234567890123456789012345/6 &amp;&amp; cd /tmp/1234567890123456789012345/6
$ 7z x Linux_Universal_Driver_zip.download.zip

...

Would you like to replace the existing file:
  Path:     ./KyoceraLinuxPackages-20220928.tar.gz
  Size:     0 bytes
  Modified: 2023-03-24 05:21:22
with the file from archive:
  Path:     KyoceraLinuxPackages-20220928.tar.gz
  Size:     260536295 bytes (249 MiB)
  Modified: 2022-10-10 11:22:38
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223314</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2023-03-24 05:28:11 +0300</bug_when>
    <thetext>Воспроизводится:
ALT: p7zip-17.04-alt1.x86_64

Не воспроизводится:
Fedora: p7zip-16.02-24.fc37.x86_64
Ubuntu 20.04: p7zip-16.02+dfsg-7build1:amd64
Офиц. сборка https://7-zip.org/a/7z2201-linux-x64.tar.xz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225113</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2023-04-27 17:44:56 +0300</bug_when>
    <thetext>Так-то безотцовщина... Илья, может, глянете?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225151</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2023-04-28 14:12:34 +0300</bug_when>
    <thetext>(Ответ для Michael Shigorin на комментарий #2)
&gt; Так-то безотцовщина... Илья, может, глянете?

Тогда я возьмусь.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242544</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-03-05 09:04:45 +0300</bug_when>
    <thetext>p7zip-17.05-alt2 -&gt; sisyphus:

 Mon Mar 04 2024 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 17.05-alt2
 - build to Sisyphus
 Thu May 18 2023 Dmitriy V Genger &lt;oskiller@altlinux&gt; 17.05-alt1
 - New version 17.05 with rpmgs script
 - Fix ZIP replace the existing file (ALT bug 45641)
 - Fix tests max level for zstd
 - Reduce tests memory requirements for i586
 - Skip tests for i586</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243178</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2024-03-19 11:20:09 +0300</bug_when>
    <thetext>(Ответ для Repository Robot на комментарий #4)
&gt; 
&gt;  Mon Mar 04 2024 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 17.05-alt2
...
Не было указано исправление CVE:
p7zip 17.01
Fix BUG CVE-2018-5996
Fix BUG CVE-2018-10115
Fix BUG CVE-2017-17969
Fix BUG CVE-2016-9296</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>