diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-18 10:36:57 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-03 14:00:33 +0100 |
commit | 55af6b45f72e0717d7b6f07b69bc0f12f4fb4cd9 (patch) | |
tree | 94990fdc1391dc5e2f558522bbbac377daa2fd3e /apps/files_trashbin/lib | |
parent | 87855aa97b0d90f8036ec40174ac1a3dcbd463e8 (diff) | |
download | nextcloud-server-55af6b45f72e0717d7b6f07b69bc0f12f4fb4cd9.tar.gz nextcloud-server-55af6b45f72e0717d7b6f07b69bc0f12f4fb4cd9.zip |
More tests
* PreviewController test
* PublicPreview test
* Versions Preview test
* Trash Preview test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/Controller/PreviewController.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files_trashbin/lib/Controller/PreviewController.php b/apps/files_trashbin/lib/Controller/PreviewController.php index 1e1f68e4317..c73b1c17c16 100644 --- a/apps/files_trashbin/lib/Controller/PreviewController.php +++ b/apps/files_trashbin/lib/Controller/PreviewController.php @@ -114,11 +114,6 @@ class PreviewController extends Controller { return new Http\FileDisplayResponse($f, Http::STATUS_OK, ['Content-Type' => $f->getMimeType()]); } catch (NotFoundException $e) { return new DataResponse([], Http::STATUS_NOT_FOUND); - } catch (\OC\PreviewNotAvailableException $e) { - return new DataResponse([], Http::STATUS_NOT_FOUND); - }catch(\Exception $e) { - return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); } - } } |