Bug 448065

Summary: Can't create split volume 7zip archive with under 1MB each
Product: [Applications] ark Reporter: pqwoerituytrueiwoq
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, nate, rthomsen6
Priority: NOR    
Version: 21.12.1   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 21.12.3
Sentry Crash Report:
Attachments: ScreenCapture

Description pqwoerituytrueiwoq 2022-01-07 14:46:22 UTC
Created attachment 145192 [details]
ScreenCapture

SUMMARY
The behavior looks like the split volume option is using a integer data type when it should be using a float data type


STEPS TO REPRODUCE
1. Create split volume 7zip archive (the only format that lets you use this feature)
2. Set volume size to any value that if it were rounded to whole number would not be the same value as before
   eg: 0.5, 1.5, 1.7, 0.7
3. click ok
4. look at output file size

OBSERVED RESULT
All split volume sizes are rounded down

EXPECTED RESULT
All split volume sizes are processed as the value input

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-051600rc8-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: Radeon RX 580 Series

ADDITIONAL INFORMATION
$ apt-cache policy ark dolphin
ark:
  Installed: 4:21.12.1-0ubuntu1
  Candidate: 4:21.12.1-0ubuntu1
  Version table:
 *** 4:21.12.1-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
dolphin:
  Installed: 4:21.12.1-0ubuntu1
  Candidate: 4:21.12.1-0ubuntu1
  Version table:
 *** 4:21.12.1-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
Comment 1 Bug Janitor Service 2022-02-20 13:47:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/104
Comment 2 Max 2022-02-21 21:38:10 UTC
Git commit ac29e1853f971f91d752a9b38b4c15a6aa3df4ef by Max Brazhnikov.
Committed on 21/02/2022 at 18:51.
Pushed by aacid into branch 'release/21.12'.

Fix multivolume archive creation

Regression have been introduced with git commit fd44ee34a, when volume size
was converted from uint to ulong.

M  +1    -1    kerfuffle/compressionoptionswidget.cpp

https://invent.kde.org/utilities/ark/commit/ac29e1853f971f91d752a9b38b4c15a6aa3df4ef