-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Owncloud creates zip file that cannot be opened by file-roller and is probably corrupted #25580
Comments
7-Zip on Windows reports a broken header, but extracts the Archive. |
I experienced this multiple times now when sharing photos with friends – they cannot open the downloaded ZIP file. I'd vote for re-opening this as the problem apparently still exists. cc @DeepDiver1975 |
Drop zip support then? 😇 |
@DeepDiver1975 I found out the reason why it works for you but not for me.
Why? Just correct the bug that causes the corrupt header. Here's the output of p7zip btw.:
|
What one tool reports as broken header has it's reason in the tool not fully implement the zip specs. So it's not a bug but an missing implementation on the tools side. The code we use for generating the zips is here https://github.com/McNetic/PHPZipStreamer |
How do you guys treat upstream bugs? Mark this one somehow and you open the upstream report, or should the original reporter do it? |
there are no fixed rules - feel free to open the bug upstream - thanks a lot! |
@DeepDiver1975 Ah ok. Sorry then. |
This is still not fixed I assume? Have got another problem here, android clients (like ES File Explorer) aren't able to open the zip files. With file-roller it works for me til now (don't have 7zip installed). |
Since nobody has bothered filing a bug report upstream or neglected to post the link here, nothing happened. I was just in to aid Scindix with additional information, I don't use Owncloud myself. |
Adding the bug label to this issue made it a bug report (seems that way) |
I meant the bug report over at https://github.com/McNetic/PHPZipStreamer. I could but I won't, because I don't use this right now and opening a bug without having a testing environment is quite impolite. |
Am I expected to do this as I'm the one that discovered the bug? |
@dansou901 I'm not running a recent version of owncloud. I don't have time bothering with updates until in a few months. So I tried accessing demo.owncloud.org. However it hangs at the login screen and I can't access anything and thus I can't confirm if the bug is still prevalent. But I guess so as I haven't seen any bug fixes regarding this issue on any side. |
Seems that some one finally managed to report that to upstream: McNetic/PHPZipStreamer#37 coming from this nextcloud bugreport: nextcloud/server#2352 |
@Scindix I have a recent version of owncloud running on my server and can verify if it is working or not as soon as there is an update. |
Seems the discussion in McNetic/PHPZipStreamer#37 is still on-going and a possible solution was posted in McNetic/PHPZipStreamer#37 (comment) Lets see if that gets fixed upstream. |
I'm experiencing similar issues (unable to extract downloaded .zip file) |
@crysman I think you will face the same issue with every ownCloud versions as long as McNetic/PHPZipStreamer#37 is unfixed / unresolved. |
I'm fixing the upstream lib ... |
Upstream PR is open - McNetic/PHPZipStreamer#39 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
There shouldn't be an error with the integrity check and file-roller should be able to open that file.
Actual behaviour
file-roller prompts: "An error ocurred while loading the archive". I can open it with other tools such as unzip.
However testing the file reveals a flaw in the archive.
I'm not sure if file-roller is failing because of this note and even if it does it should be less sensitve and still be able to open the file. Thus I already filed a bug to gnome: https://bugzilla.gnome.org/show_bug.cgi?id=769083 But it seems that owncloud is creating "mildly corrupted" archives. And some Zip programs may fail because of this.
I'm not sure since when this happens. But it must have been one of the latest updates. (something between 8.2 and 9.0 I would guess)
Server configuration
I'm filling this out for the sake of completeness. But my described behaviour can also be observed at demo.owncloud.org
So it doesn't have to do with my specific server configuration.
Operating system:
Debian Jessie 8.5
Web server:
Apache/2.4.20
Database:
MySQL Ver 14.14
PHP version:
PHP 5.6.22-0+deb8u1
ownCloud version: (see ownCloud admin page)
9.0.4
Updated from an older ownCloud or fresh install:
updated (initially from 8.0.x)
Where did you install ownCloud from:
manual installation
Signing status (ownCloud 9.0 and above):
There seems to be an issue with the key of the tasks app that I couldn't fix yet. But this is unrelated to this issue.
UPDATE: danimo from owncloud central told me that a new key for the Tasks App is on the way. So just ignore this section.
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: Google Drive and Dropbox (but unrelated to this issue)
Are you using encryption: yes
Are you using an external user-backend, if yes which one: no
Client configuration
Browser:
Firefox 47.0.1
Operating system:
Arch Linux (up to date)
Logs
Web server error log
No relevant error
ownCloud log (data/owncloud.log)
Not a single entry regarding this issue ;)
The text was updated successfully, but these errors were encountered: