Morris Jobke
d3d045dd5c
Remove unused import statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
3d4c698f44
Improve OC_Image code to not guess the type of input, but actually request the specific methods to be called
Followup to #7836
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
ba648eecdf
Move avatar code to Avatar Class
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Roeland Jago Douma
604596ec16
Always generate avatar
Even if no avatar is set we should just generate the image. This to not
duplicate the code on all the clients. And only server images from the
avtar endpoint.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Lukas Reschke
8ad17a66d6
Exclude avatar from Same-Site Cookie requirement
Required to work with the upcoming Collabora avatar integration.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Joas Schilling
0aff1c9268
Return the user id in case of an error
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Roeland Jago Douma
aa6d8fcdbf
Fix AvatarController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Roeland Jago Douma
5c602f3217
Cache all avatar responses
* Cache for 30 minutes
* Also cache when avatar can't be found
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Roeland Jago Douma
b05fe45d52
Fix avatar on exif rotated images
Fixes #1928
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Joas Schilling
656e3f7a24
Check the mimetype before reading the content and catch exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Roeland Jago Douma
6740c627b8
Move AvatarController over to FileDisplayResponse
9 years ago
Roeland Jago Douma
14136295b7
Cache avatars properly
* Set proper caching headers for avatars (15 minutes)
* For our own avatar use some extra logic to invalidate when we update
9 years ago
Roeland Jago Douma
b1a090f357
AvatarController use proper JSONResponse
* Do not rely on DataResponse magic. We want JSON so use JSON
* Fix tests
9 years ago
Roeland Jago Douma
2f03853fb9
AvatarController cleanup
* Use all DI components
* Let the AppFramework resolve the AvatarController
* Update unit tests
* Unit tests no longer require DB
9 years ago
Roeland Jago Douma
0cb8f74cd1
Delete IE8 support in the avatar controller
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Lukas Reschke
5fdde426eb
Add fancy layout
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Lukas Reschke
a4b19a5b1e
Rename files to be PSR-4 compliant
10 years ago
Morris Jobke
b97fe97875
move avatar controller to core/controller
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
186e35d954
Verify the path is a file on avatar update
Fixes #21533
Before we just assumed that the passed path was a file. This does not
have to be the case. Thus check if it actually is a file before doing
any more tests.
10 years ago
Roeland Jago Douma
3e80f14269
[Avatar] Make the avatar controller use the avatar node
10 years ago
Lukas Reschke
8f09d5b67c
Update license headers
10 years ago
Lukas Reschke
abdbf10ebc
Do not print exception message
In case of an error the error message often contains sensitive data such as the full path which potentially leads to a full path disclosure.
Thus the error message should not directly get displayed to the user and instead be logged.
10 years ago
Vincent Petry
14591d9df7
Use injected request
10 years ago
Morris Jobke
bf579a153f
fix IE8 user agent detection
10 years ago
Vincent Petry
c7aef6c368
Fix uploading avatar and root certs in IE8
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Thomas Müller
a446b43bcc
Revert "Allow Remote avatars"
10 years ago
Roeland Jago Douma
ae62537adf
Allow remote avatars
11 years ago
Lukas Reschke
84d1e36ff9
Remove requesttoken for avatars
First step for https://github.com/owncloud/core/issues/11915
10 years ago
Roeland Jago Douma
65cf4028cc
Move avatarcontroller towards Node Api
11 years ago
Morris Jobke
e184157684
[avatar] add error handlers for avatar setup
add colon to translated string
use placeholder in t()
Adding a size limitation for avatar upload
Unit test for file size
Fix typo & display server side error message
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Lukas Reschke
123807bff7
Correc type annotation
11 years ago
Lukas Reschke
34f5541088
Add `no-store` to AppFramework
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Robin Appelman
bd1d7107bb
round width and height when cropping avatar
11 years ago
Joas Schilling
8ed27d2ce0
Create an interface for OC_Image and OCP\Image for the public API
11 years ago
Joas Schilling
8304f5f508
Fix getting the avatar of a non-existing user
11 years ago
Roeland Jago Douma
1a0f9c375b
Avatar controller moved to AppFrameWork
* Original avatarcontroller migrated to the appframework
* Added DataDisplayResponse that show data inline in the browser (used
to retrun the image)
* Removed some unneeded code
* Added unit tests for the avatarcontroller
11 years ago