Bug 419009 - Cann't create 7z archive for folder
Summary: Cann't create 7z archive for folder
Status: RESOLVED DUPLICATE of bug 453452
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 19.12.3
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 08:25 UTC by Konstantin
Modified: 2024-04-29 12:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Ark Modules (66.52 KB, image/png)
2020-03-20 04:50 UTC, Konstantin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2020-03-19 08:25:47 UTC
SUMMARY
Cann't create 7z archive using by menu in Dolphin and Krusader for selected folder

STEPS TO REPRODUCE
1. Open Dolphin/Arc
2. Select folder with files
3. Select Archive -> ...

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.18.3
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.5 

ADDITIONAL INFORMATION
KDE Frameworks 5.67.0,
Qt 5.12.5
Kubuntu 20.04
Comment 1 Elvis Angelaccio 2020-03-19 22:04:21 UTC
Do you have p7zip installed?
Comment 2 Konstantin 2020-03-20 04:50:31 UTC
Created attachment 126901 [details]
Ark Modules

Ark Modules
Comment 3 Konstantin 2020-03-20 04:51:19 UTC
 hard  ~  ls -l /usr/bin/7z
-rwxr-xr-x 1 root root 39 авг 10  2019 /usr/bin/7z

p7zip-full/focal,now 16.02+dfsg-7 amd64 [installed]
p7zip-rar/focal,now 16.02-3 amd64 [installed]
p7zip/focal,now 16.02+dfsg-7 amd64 [installed]
Comment 4 Konstantin 2020-03-20 04:57:49 UTC
When create tar.gz - all is ok for selected folder
When create 7z - not
But i check for empty folder, and try archive it - all is ok. Maybe this is p7zip bug.
I try found why my folder not archived.
Comment 5 Konstantin 2020-03-20 05:06:02 UTC
I found why archive not created:
If exit link in folder (content) as example:
 hard  …  wineTMP  prefix  dosdevices  ls -l
итого 0
lrwxrwxrwx 1 hard hard 10 мар 20 10:01 c: -> ../drive_c
lrwxrwxrwx 1 hard hard 10 мар 20 10:01 com1 -> /dev/ttyS0
lrwxrwxrwx 1 hard hard 10 мар 20 10:01 com10 -> /dev/ttyS9
lrwxrwxrwx 1 hard hard 11 мар 20 10:01 com11 -> /dev/ttyS10
lrwxrwxrwx 1 hard hard 11 мар 20 10:01 com12 -> /dev/ttyS11
lrwxrwxrwx 1 hard hard 11 мар 20 10:01 com13 -> /dev/ttyS12
lrwxrwxrwx 1 hard hard 11 мар 20 10:01 com14 -> /dev/ttyS13

Or any other links

 hard  …  wineTMP  prefix  drive_c  ls -l
итого 24
lrwxrwxrwx  1 hard hard   20 мар 20 10:01  Games -> ../../game_info/data
drwxrwxr-x  3 hard hard 4096 мар  8 16:34  ProgramData

If i remove it all is ok, archive created.
Comment 6 Bug Janitor Service 2020-04-04 04:33:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Christoph Feck 2020-04-09 18:44:50 UTC
New information was added with comment 5; changing status for inspection.
Comment 8 Max 2022-02-20 11:53:43 UTC
(In reply to Konstantin from comment #4)
> When create tar.gz - all is ok for selected folder
> When create 7z - not
> But i check for empty folder, and try archive it - all is ok. Maybe this is
> p7zip bug.
> I try found why my folder not archived.

Can't reproduce this with ark-21.12 and p7zip-16.02 or 7-zip-21.07.
Could you pack this folder directly by 7z from the command line (this what ark would do):
7z a -l archive.7z folder_with_links

Does it succeed?
Comment 9 Pedro V 2024-04-29 12:46:53 UTC
Duplicate of multiple of various reports around involving files 7z / p7zip can't handle.

Typically the issue is with symbolic links, and comment 5 showing even just "com1 -> /dev/ttyS0" is a quite likely candidate for problems as /dev/ttyS0 would be attempted to be added to the archive which would fail and would get whined about in the output of 7z, but then Ark swallows that error output, leading to the mess.

For anyone finding this by accident later, this is why 7z isn't used universally and tar is still being used despite its significant limitations. The 7-Zip project mostly focuses on Windows, and support for features not presented or not really used there is poor, so it either gets upset with some files, or worse case it makes an archive that unpacks into a mess different than what was intended to be archived, like symbolic links being replaced with the files they pointed to.
The problem with Ark is not just the lack of error propagation, but even hiding the error.

Reaping this as it went without additional info for long, and there are multiple similar enough bug reports anyway.

*** This bug has been marked as a duplicate of bug 453452 ***