-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Bug]: Nextcloud Files app refuses uploading of an optimized gif directly out of gifsicle #39891
Comments
Thanks for testing, @solracsf ! Might depend not only on Nextcloud version, but also on the version of whatever is used to create the preview images (suspecting imagemagick). |
Don't we process GIFs via GD not ImageMagick? (I always get confused what handles what on the preview side). @Moini - In your browser console log under Network, which transaction seems to trigger the non-response/500 error (or whatever)? Also:
|
Aaaah - the network log was a very good idea! Thank you. UBlock origin seems to think that the PUT request is insecure and blocks it. Error message is: Cookie types sent:
Are you able to tell whether this is a UBlockOrigin bug or a Nextcloud bug? The other requests that work seem to send an identical set of cookies. |
The error message seems to be specific to Nextcloud, though, not to UBlock origin... mmh. A web search turned up multiple hits for various Nextcloud bugs from this summer, but nothing about UBlock origin. |
As far as I can tell from the code, that is the strict cookie. Can you try in a different browser (or at least with all your extensions like privacy/cookie prevention ones disabled)? For the record, I'm using uBlock Origin (and Privacy Badger for that matter). And neither cares at all about my NC instances. But there are things that various third-party apps you install in NC might do that could muck with things or set off alarm bells with some uBlock Origin I suppose... Isn't your Network window saying uBlock Origin is blocking the XHR request? 🤔 What happens if you disable uBlock Origin for your Nextcloud URL? And, yes, that is the NC error message that gets spit out whenever the check doesn't pass. |
Thanks again, @joshtrichards , I found it now... 😳 I would say this is a UBlock origin bug. If I upload something, that should not be blocked... Also, gotta fix that filter rule... It's far too generic. |
Bug description
Nextcloud Files app refuses uploading of an optimized gif directly out of gifsicle.
When I upload it via the Nextcloud desktop app (by putting it into the corresponding folder on my harddrive), it is uploaded, and can be selected in the Files app. However, when I click on the share button, the side menu never stops loading. When try to rename the file, I get the same error message as above. The log in the admin section does not show any errors from recent activity.
Steps to reproduce
Try to upload
That's all.
Expected behavior
I can upload and share the file. If the preview fails, well, so be it. But in any case, I should be able to share the gif.
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
I really would like to, if the log did not contain user names, IP addresses, detailed Browser configurations and other sensitive data. As long as the logging app does not clean out sensitive stuff, I cannot provide any logs. I have checked manually that there is no related error message from within the last 30 minutes. When I disable DEBUG and INFO level messages, there are no messages at all from today.
Additional info
Gifsicle (if you don't know it) is a command line program for editing Gif images.
I'm suspecting that maybe Imagemagick isn't able to deal with those properly, as the Element matrix instance also refused to upload the file into a Matrix chat. GitHub, however, works - probably they are not trying to generate preview images.
In any case, if preview generation fails, it should:
The text was updated successfully, but these errors were encountered: