Olivier Mehani
19ad058d06
Add message to NotSquareException thrown from Avatar
This prevents cryptic messages such as the following, from `user_ldap`:
Could not set avatar for uid=user,ou=People,dc=example,dc=net, because:
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Add message to NotPermittedException thrown from Files\Nodes\Folder
Ditto.
Don't use translation macros here as this seems to be pretty low-level
errors that generally get caught and prettified, and I don't want to
unduly clog down the lower layers.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
fixup! Add message to NotPermittedException thrown from Files\Nodes\Folder
10 years ago
Roeland Jago Douma
6807cb684f
avatar to appdata
* Fix AvatarTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
10 years ago
Roeland Jago Douma
5d8b941fea
Initial AppData
* Introduce simpleFS
* Introduce IAppData
* Introduce AppData Factory to get your AppData folder
* Update FileDisplayResponse
* AppData implements a ISimpleRoot but lazy. So only if an apps starts
to access data will stuff get initialized
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
10 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
10 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
d312051b3d
Moved some files in \OC to PSR-4
* \OC\ActivityManager
* \OC\AllConfig
* \OC\AppConfig
* \OC\AppHelper
* \OC\Avatar
* \OC\AvatarManager
* \OC\CapabilitiesManager
* \OC\Config
* \OC\ContactsManager
* \OC\DatabaseException
* \OC\DatabaseSetupException
10 years ago
Robin Appelman
c22697e09e
only remove avatars from the folder we store them in
10 years ago
Robin Appelman
54e750ba78
dont die when we cant save the resized avatar, log instead
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Arthur Schiwon
096115870c
Avatar should also claim its change
10 years ago
Thomas Müller
a1ca9de0f5
Trigger change on avatar delete
10 years ago
Thomas Müller
f165ad8864
Changing the avatar of the user emits the changeUser event which triggers update of the system addressbook
10 years ago
Thomas Müller
728caf13f8
Adding support of -1 as size to be passed into get and getFile
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
4e6f6518ff
Remove all cache avatars on avatar deletion
Fixes #21513
Since we cache the generated avatars. We should also delete the
generated sizes when we remove the avatar.
10 years ago
Roeland Jago Douma
d796c43841
[Avatars] Add function to get the Node of the avatar
Since we usually just get the avatar and stream the content to the users
there is no need to first create an image in memory.
10 years ago
Thomas Müller
dad6470baa
Add IUser::getAvatarImage() for easy access
10 years ago
Roeland Jago Douma
b00db2c933
DI in avatar code
* DI in avatar code
* Use the node API
* More unit tests
* Unit tests no longer require DB
10 years ago
Robin Appelman
6b7e748245
cache resized avatars
10 years ago
Lukas Reschke
8f09d5b67c
Update license headers
10 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Lukas Reschke
15ba2a4100
Reintroduce user cache
This was required by avatars and was broken with https://github.com/owncloud/core/pull/16200
Fixes https://github.com/owncloud/core/issues/16942
11 years ago
Lukas Reschke
34d0e610cc
Filter potential dangerous filenames for avatars
We don't want to have users misusing this API resulting in a potential file disclosure of "avatar.(jpg|png)" files.
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Joas Schilling
8ed27d2ce0
Create an interface for OC_Image and OCP\Image for the public API
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
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Robin Appelman
c644ed89a7
Add a better way to check if an avatar exists for the user
11 years ago
Robin Appelman
d0266c0bf8
Use public api for getting l10n
12 years ago
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
12 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
12 years ago
Arthur Schiwon
6085878966
Avatar: accept OC_Image as in setParameter
12 years ago
Thomas Müller
92c8672c0f
fixing PHPDoc comments and syntax
12 years ago
Arthur Schiwon
00071401d7
Round out Avatar Public API
12 years ago
kondou
507325dd50
Add public API for \OC\Avatar
13 years ago
Bjoern Schiessle
3380bd650f
avatars should also work with encryption after pr #5332 was merged
13 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
13 years ago
kondou
bf7f94422f
Bring another enable_avatars to $_ and fix $thus->$this
13 years ago
kondou
1832eb8872
Pass view in \OC_Avatar to constructor and use $_ for enable_avatars
13 years ago
kondou
221bbd275c
Use \OC_App for checking whether encryption is enabled
13 years ago
Thomas Müller
68dce9dde5
fixing style, var name & PHPDoc
13 years ago
kondou
e7e3f1b81a
Fix some of @jancborchardt's complaints in oc_avatars
13 years ago
kondou
74c9223281
Properly check for tmpavatar, invalidate cache, fix debug msgs
13 years ago
kondou
ecf187393b
Finish cropper, Get rid of TODOs, Improve \OCP\Avatar and "fix" unitests
13 years ago
kondou
8d8a57de7f
Continue work on cropper
13 years ago
kondou
9a8908b643
Use Jcrop, have inline errormsg, work on cropping, clean up, WIP
13 years ago
kondou
5eb17aadb3
Fix spacing, have remove() and return JSON for custom-default-avatars
13 years ago