nextcloud/lib/private
Morris Jobke 9ca848c317
Opening the trashbin causes errors in log for files without preview
* put a file without a generated preview in the trashbin
  (e.g. a *.docx file)
* open the trashbin
* following errors will show up in the nextcloud.log:
	- filesize(): stat failed for ...
	- fopen(...): failed to open stream: No such file or directory at ...
	- fread() expects parameter 1 to be resource, boolean given at ...
	- fclose() expects parameter 1 to be resource, boolean given at ...
	- imagecreatefromstring(): Empty string or invalid image at ...

This is because the preview code tries to load an SVG image, which
is obviously only text.

The fix simply handles this before the loading happens and the web UI
keeps showing the default mimetype icon.
2016-09-13 20:18:09 +02:00
..
Activity Run the license script 2016-07-22 11:40:41 +02:00
App Allow to validate the password_policy app 2016-09-08 09:56:48 +02:00
AppFramework Match only for actual session cookie 2016-09-08 21:07:05 +02:00
Archive Run the license script 2016-07-22 11:40:41 +02:00
Authentication Check if an app provide two-factor-auth providers before we try to use them 2016-08-06 10:30:36 +02:00
BackgroundJob Run the license script 2016-07-22 11:40:41 +02:00
Cache Run the license script 2016-07-22 11:40:41 +02:00
Command Run the license script 2016-07-22 11:40:41 +02:00
Comments Run the license script 2016-07-22 11:40:41 +02:00
Console Correct name in Console Application.php 2016-08-05 14:37:32 +02:00
DB Run the license script 2016-07-22 11:40:41 +02:00
Diagnostics Run the license script 2016-07-22 11:40:41 +02:00
Encryption skip shared files, if files get decrypted only for a specific user we shouldn't touch files owned by a different user. 2016-09-09 14:55:46 +02:00
Files Correctly remove the charset from finfo mimetype 2016-09-08 09:20:34 +02:00
Group Run the license script 2016-07-22 11:40:41 +02:00
Hooks Run the license script 2016-07-22 11:40:41 +02:00
Http/Client Run the license script 2016-07-22 11:40:41 +02:00
IntegrityCheck Run the license script 2016-07-22 11:40:41 +02:00
L10N Run the license script 2016-07-22 11:40:41 +02:00
Lock Run the license script 2016-07-22 11:40:41 +02:00
Log Run the license script 2016-07-22 11:40:41 +02:00
Mail Run the license script 2016-07-22 11:40:41 +02:00
Memcache Run the license script 2016-07-22 11:40:41 +02:00
Migration Run the license script 2016-07-22 11:40:41 +02:00
Notification Make sure the primary action is always the first one 2016-08-18 09:27:14 +02:00
OCS Run the license script 2016-07-22 11:40:41 +02:00
Preview Run the license script 2016-07-22 11:40:41 +02:00
Repair Improve regexp to detect duplicate folders when repairing unmerged shares 2016-08-17 19:39:08 +02:00
Route Run the license script 2016-07-22 11:40:41 +02:00
Search Run the license script 2016-07-22 11:40:41 +02:00
Security Run the license script 2016-07-22 11:40:41 +02:00
Session Run the license script 2016-07-22 11:40:41 +02:00
Settings Correctly remove admin sections and settings 2016-09-07 14:37:48 +02:00
Setup revert to old setup connection logic 2016-07-29 00:41:12 +02:00
Share Fix MissingMandatoryParametersException for share notifications 2016-09-13 14:09:34 +02:00
Share20 Run the license script 2016-07-22 11:40:41 +02:00
SystemTag Run the license script 2016-07-22 11:40:41 +02:00
Tagging Run the license script 2016-07-22 11:40:41 +02:00
Template Run the license script 2016-07-22 11:40:41 +02:00
Updater Change updater URL 2016-09-08 12:29:37 +02:00
User Apply password policy on user creation 2016-09-12 22:45:46 +02:00
legacy Move navigation entries without order to the end 2016-09-07 10:52:21 +02:00
AllConfig.php Run the license script 2016-07-22 11:40:41 +02:00
AppConfig.php Run the license script 2016-07-22 11:40:41 +02:00
AppHelper.php Run the license script 2016-07-22 11:40:41 +02:00
Avatar.php Run the license script 2016-07-22 11:40:41 +02:00
AvatarManager.php Run the license script 2016-07-22 11:40:41 +02:00
CapabilitiesManager.php Run the license script 2016-07-22 11:40:41 +02:00
Config.php Run the license script 2016-07-22 11:40:41 +02:00
ContactsManager.php Run the license script 2016-07-22 11:40:41 +02:00
DatabaseException.php Run the license script 2016-07-22 11:40:41 +02:00
DatabaseSetupException.php Run the license script 2016-07-22 11:40:41 +02:00
DateTimeFormatter.php Run the license script 2016-07-22 11:40:41 +02:00
DateTimeZone.php Run the license script 2016-07-22 11:40:41 +02:00
ForbiddenException.php Run the license script 2016-07-22 11:40:41 +02:00
HTTPHelper.php Run the license script 2016-07-22 11:40:41 +02:00
HintException.php Run the license script 2016-07-22 11:40:41 +02:00
Installer.php register app autoload instead of loading apps 2016-08-16 21:09:36 +02:00
LargeFileHelper.php Run the license script 2016-07-22 11:40:41 +02:00
Log.php hide parameters of tryLogin when logging 2016-08-22 14:33:23 +02:00
NaturalSort.php Run the license script 2016-07-22 11:40:41 +02:00
NaturalSort_DefaultCollator.php Run the license script 2016-07-22 11:40:41 +02:00
NavigationManager.php Run the license script 2016-07-22 11:40:41 +02:00
NeedsUpdateException.php Run the license script 2016-07-22 11:40:41 +02:00
NotSquareException.php Run the license script 2016-07-22 11:40:41 +02:00
OCSClient.php Run the license script 2016-07-22 11:40:41 +02:00
Preview.php Opening the trashbin causes errors in log for files without preview 2016-09-13 20:18:09 +02:00
PreviewManager.php Run the license script 2016-07-22 11:40:41 +02:00
PreviewNotAvailableException.php Opening the trashbin causes errors in log for files without preview 2016-09-13 20:18:09 +02:00
RedisFactory.php Run the license script 2016-07-22 11:40:41 +02:00
Repair.php Add repair step for unmerged shares (WIP) 2016-08-04 19:50:16 +02:00
RepairException.php Run the license script 2016-07-22 11:40:41 +02:00
Search.php Run the license script 2016-07-22 11:40:41 +02:00
Server.php introduce NEXTCLOUD_CONFIG_DIR env variable (see #300) 2016-08-26 12:31:43 +02:00
ServerContainer.php Backport Workflow section + hidden empty sections #995 to stabble10 2016-08-22 16:37:48 +02:00
ServerNotAvailableException.php Run the license script 2016-07-22 11:40:41 +02:00
ServiceUnavailableException.php Run the license script 2016-07-22 11:40:41 +02:00
Setup.php Run the license script 2016-07-22 11:40:41 +02:00
Streamer.php Run the license script 2016-07-22 11:40:41 +02:00
SubAdmin.php Run the license script 2016-07-22 11:40:41 +02:00
SystemConfig.php Run the license script 2016-07-22 11:40:41 +02:00
TagManager.php Run the license script 2016-07-22 11:40:41 +02:00
Tags.php Run the license script 2016-07-22 11:40:41 +02:00
TempManager.php Run the license script 2016-07-22 11:40:41 +02:00
TemplateLayout.php Add cache buster to left menu bar 2016-08-18 12:45:52 +02:00
URLGenerator.php Make sure we try to autoload the class 2016-07-25 09:42:28 +02:00
Updater.php Allow downgrades of maintenance accross vendors 2016-08-30 10:19:40 +02:00