| Summary: | [p7zip plugin] Risk of data loss due to notification indicating successful compression to 7zip format when in fact the compression failed | ||
|---|---|---|---|
| Product: | [Applications] ark | Reporter: | Patrick Silva <bugseforuns> |
| Component: | plugins | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | aacid, michal.zubkowicz, rthomsen6, villeneuve, voidpointertonull+bugskdeorg |
| Priority: | NOR | ||
| Version First Reported In: | 22.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2023-01-26 17:34:50 UTC
Compression to 7zip fails randomly only when I use the context menu of Dolphin. If I open Ark , drag the folder and drop it on Ark, the compression to 7zip occurs as expected. Here is the log after a unsuccessful compression via context menu of Dolphin:
ark.kerfuffle: Opening add dialog
ark.kerfuffle: CreateDialog returned URL: "file:///home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: CreateDialog returned mime: "application/x-7z-compressed"
ark.kerfuffle: Starting job
ark.kerfuffle: Setting GlobalWorkDir to "/home/stalker/Área de trabalho"
ark.kerfuffle: Going to create archive "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Checking plugin "kerfuffle_cli7z"
ark.kerfuffle: Created read-only interface for "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Created read-write interface for "/home/stalker/Área de trabalho/Videos.7z"
ark.cli7z: Loaded cli_7z plugin
ark.cli7z: Setting up parameters...
ark.cli7z: Checking 7z variant...
ark.cli7z: Detected p7zip variant.
ark.kerfuffle: Successfully loaded plugin "kerfuffle_cli7z"
ark.kerfuffle: Created archive instance
ark.kerfuffle: Created job instance
ark.kerfuffle: Going to add files QVector(Entry(QVariant(QString, "/home/stalker/Área de trabalho/Videos")) ) with options (encryption hint: true, compression method: "LZMA2", global work dir: "/home/stalker/Área de trabalho", compression level: 5, volume size: 0)
ark.kerfuffle: Created job instance
ark.kerfuffle: GlobalWorkDir is set, changing dir to "/home/stalker/Área de trabalho"
ark.kerfuffle: Going to add 108 entries, counted in 0 ms
ark.kerfuffle: Adding 1 file(s) to destination: ""
ark.kerfuffle: Executing "/usr/bin/7z" ("a", "-l", "-pmypassword", "-mhe=on", "-mx=5", "-m0=LZMA2", "/home/stalker/Área de trabalho/Videos.7z", "Videos") within directory "/home/stalker/Área de trabalho"
ark.kerfuffle: Process finished, exitcode: 0 exitstatus: QProcess::NormalExit
ark.kerfuffle: Executing "/usr/bin/7z" ("l", "-slt", "-pmypassword", "/home/stalker/Área de trabalho/Videos.7z") within directory "/home/stalker/Área de trabalho"
ark.cli7z: p7zip version "17.04" detected
ark.cli7z: Archive name: "/home/stalker/Área de trabalho/Videos.7z"
ark.cli7z: Archive type: "7z"
ark.kerfuffle: Process finished, exitcode: 0 exitstatus: QProcess::NormalExit
ark.kerfuffle: Job finished, result: true , time: 1219146 ms
ark.kerfuffle: job finished
kf.coreaddons: Expected a KPluginFactory, got a KIOPluginForMetaData
ark.main: Trying to open QUrl("file:///home/stalker/Área de trabalho/Videos.7z")
ark.part: Attempting to open archive "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Going to create archive "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Checking plugin "kerfuffle_cli7z"
ark.kerfuffle: Created read-only interface for "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Created read-write interface for "/home/stalker/Área de trabalho/Videos.7z"
ark.cli7z: Loaded cli_7z plugin
ark.cli7z: Setting up parameters...
ark.cli7z: Checking 7z variant...
ark.cli7z: Detected p7zip variant.
ark.kerfuffle: Successfully loaded plugin "kerfuffle_cli7z"
ark.kerfuffle: Created archive instance
ark.kerfuffle: Created job instance
ark.main: Entering application loop
ark.kerfuffle: Executing "/usr/bin/7z" ("l", "-slt", "/home/stalker/Área de trabalho/Videos.7z") within directory "/home/stalker/Área de trabalho"
ark.cli7z: p7zip version "17.04" detected
ark.cli7z: Archive name: "/home/stalker/Área de trabalho/Videos.7z"
ark.kerfuffle: Found a password prompt
ark.kerfuffle: Executing password prompt
ark.kerfuffle: Writing "mypassword\n" to the process
ark.cli7z: Archive type: "7z"
ark.kerfuffle: Process finished, exitcode: 0 exitstatus: QProcess::NormalExit
ark.kerfuffle: Job finished, result: true , time: 7203 ms
ark.part: Showing columns: (0, 1, 3, 7, 9, 11)
ark.part: Time to count entries and size: 0 ms
ark.kerfuffle: Going to test archive
ark.kerfuffle: Job started
ark.kerfuffle: Executing "/usr/bin/7z" ("t", "-pmypassword", "/home/stalker/Área de trabalho/Videos.7z") within directory "/home/stalker/Área de trabalho"
ark.kerfuffle: Process finished, exitcode: 2 exitstatus: QProcess::NormalExit
ark.kerfuffle: Job finished, result: true , time: 213525 ms
Bug #453452 could be related, there's generally a problem with the lack of error handling for issues related to the external 7z executable. The password passed in the command line is a whole another issue I'd highlight here as I was surprised to see that "-pmypassword" part which can be seen by all users on the host on most setups. Not really seeing an error message though, or a specific error. Quite a bit of time passed since the report, but do you have any more specific information? Were the files actually archived in that 7203 ms? I would expect no archive in that time, but then a file not even existing shouldn't take 213525 ms to verify. 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! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now 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 Thank you for helping us make KDE software even better for everyone! Confirmed, there are a bunch of errors from the 7z output that are currently ignored by ark. For instance the following one when trying to compress the firefox profile folder:
>7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
>p7zip Version 17.05 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)
>Scanning the drive:
>ERROR:
>stat error for d0idqhmm.default-default/lock (No such file or directory)
However, I strongly recommend to upgrade to ark 24.05 which can use libarchive to handle the 7z format. Hopefully one day we can drop the p7zip plugin and forget about this parsing madness.
*** Bug 436915 has been marked as a duplicate of this bug. *** |