linuxmint/nemo

Impossible to zip a folder ending with a space and containing files

Ensam57 opened this issue · 9 comments

Distribution

Linux Mint 21.3

Package version

Nemo 6.0.2

Frequency

Always

Bug description

When I want to compress a folder with Nemo, it doesn't work when this folder name ends with a space and contains some files.

Steps to reproduce

Unzip the joined "PL7-07 version 4.zip" file in Nemo (right click on it and choose "Extract here"). Rename the folder "PL7-07 version 4" into "PL7-07 version 4 " (add a space at the end).
Zip the folder "PL7-07 version 4 " with Nemo (right click on it and choose "Compress..."). Nothing happens, the file "PL7-07 version 4 .zip" isn't created.

Expected behavior

The file "PL7-07 version 4 .zip" should be created.

Additional information

PL7-07 version 4.zip

I'm not able to reproduce the issue on 6.2.0

I can reproduce it on two computers with Cinnamon 6.0.4.

I can't reproduce this on nemo 6.0.2, Cinnamon 6.0.4 (on LMDE6)

Here 'b' = space.
Compress folder Xb (which is non-empty); this yields Xb.zip (as expected)
I rename this (for some reason) Xb.zip to X.zip
On unpacking, I still get a directory with a trailing blank.

Try with the files I uploaded. The reason why Nemo zip fails isn't only adding a space at the end of the folder.
Try With Linux Mint Cinnamon 21.3 before with LMDE.

Then I can reproduce your problem.
However, since the contents are Windows files, was the original zip file created on a Windows machine?

No, the original zip file was created on Linux Mint Cinnamon.

If you remove some files from the zip, one after one, after adding space at the end of the folder name, you can reproduce the bug too. But there's a limit in the number of files you can remove. Beyond this limit, the bug disappears.

Can anyone here reproduce in a supported nemo version (6.2.x)?
The supported version works ok here.

cinnamon-2024-06-27T142011+0100.webm

I can reproduce it with Nemo 6.2.6, Linux Mint Cinnamon 22.