Closed Qhilm closed 5 months ago
I am unable to replicate this on Debian. Can you please post the exact commands you used and the permissions of the user as well as the directory you are extracting into? I was under the impression that ZIP files did not store permissions.
Can you also try with a different ZIP file that didn't come from Immich?
I will recheck on Ubuntu, I might have mixed up something there, the issue might only exist on macOS.
On macOS, I simply double click the .zip file and it creates a folder with the same name (minus the extension). The folder itself has correct permissions (read and write for my user) but the files inside the folder do not.
I also tried unziping from the cli using unzip immich-20240414_195237.zip
and it does not create a folder, puts both files directly in the same path, but it's exactly the same issue, both files have zero permissions.
Finally, I installed another decompression utility, Keka. And low and behold, the issue does not happen.
Hence, it seems it specific to the macOS uncompression utility (or unzip
on macOS) and the immich archive. macOS is bundling unzip 6.0, in case that helps.
I do not have this issue with other zip files as far as I know.
This seems like a Mac OS problem then? I just opened an Immich ZIP using 7-zip and I see this:
I retested on Ubuntu 22.04, I confirm it's exactly the same issue. After extracting the files, they have zero permissions. No read permissions, no write permissions.
I also tested using unzip
on the CLI, same results, files are extracted, owner is my user, but there are no permissions, neither for user, group or everyone: ls
output shows "----------" for permissions.
Perhaps something is off with your storage permission at UPLOAD_LOCATION
This is the permission after I download the file from a local immich instance hosted on MacOS and has the UPLOAD_LOCATION
point to the local storage on the mac
The bug
When I download a single photo, no issue.
When selecting multiple photos and downloading, Immich will make a zip file out of it and download it. When unpacking/extracting the zip files, all files in the zip have no read or write permissions somehow.
I tested this with Firefox 124.0.2 and Chrome 123 on macOS 14.4.1, as well as Firefox 124 on Ubuntu 22.04.
The OS that Immich Server is running on
macOS 14.4.1, Ubuntu 22.04
Version of Immich Server
v1.101.0
Version of Immich Mobile App
v1.101
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response