summaryrefslogtreecommitdiffstats
path: root/lib/public
Commit message (Collapse)AuthorAgeFilesLines
* bring back remember-meChristoph Wurst2016-11-021-1/+1
| | | | | | | | | | * try to reuse the old session token for remember me login * decrypt/encrypt token password and set the session id accordingly * create remember-me cookies only if checkbox is checked and 2fa solved * adjust db token cleanup to store remembered tokens longer * adjust unit tests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add method to check if a share provider for a given type is loadedBjoern Schiessle2016-11-011-0/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Stricter signatureRoeland Jago Douma2016-10-312-4/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-313-0/+28
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* Merge pull request #1937 from nextcloud/ros-for-notification-messageRoeland Jago Douma2016-10-311-0/+21
|\ | | | | Allow rich object strings in messages as well
| * Allow rich object strings in messages as wellJoas Schilling2016-10-311-0/+21
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Removed depreacted functions (since 6.0)Roeland Jago Douma2016-10-291-92/+0
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move away from OC_L10NRoeland Jago Douma2016-10-281-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Proper DI of configRoeland Jago Douma2016-10-281-3/+2
| | | | | | * Fixed comments Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-281-0/+15
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Merge pull request #1800 from nextcloud/nextcloud-rich-object-stringsMorris Jobke2016-10-274-0/+319
|\ | | | | Nextcloud rich object strings
| * Move federated share notifications to ROSJoas Schilling2016-10-201-0/+19
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow rich object subjects for NotificationsJoas Schilling2016-10-201-0/+21
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add Rich Object Definitions and a validatorJoas Schilling2016-10-203-0/+279
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #1738 from ↵Morris Jobke2016-10-262-0/+50
|\ \ | | | | | | | | | | | | nextcloud/comments-provide-displaynames-with-mentions comment mentions: show displayname not uid
| * | resolve displayname via manager and registerable resolversArthur Schiwon2016-10-191-0/+28
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-0/+22
| |/ | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #1871 from nextcloud/use-csp-noncesMorris Jobke2016-10-252-2/+24
|\ \ | | | | | | Use CSP nonces
| * | Add support for CSP noncesLukas Reschke2016-10-242-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CSP nonces are a feature available with CSP v2. Basically instead of saying "JS resources from the same domain are ok to be served" we now say "Ressources from everywhere are allowed as long as they add a `nonce` attribute to the script tag with the right nonce. At the moment the nonce is basically just a `<?php p(base64_encode($_['requesttoken'])) ?>`, we have to decode the requesttoken since `:` is not an allowed value in the nonce. So if somebody does on their own include JS files (instead of using the `addScript` public API, they now must also include that attribute.) IE does currently not implement CSP v2, thus there is a whitelist included that delivers the new CSP v2 policy to newer browsers. Check http://caniuse.com/#feat=contentsecuritypolicy2 for the current browser support list. An alternative approach would be to just add `'unsafe-inline'` as well as `'unsafe-inline'` is ignored by CSPv2 when a nonce is set. But this would make this security feature unusable at all in IE. Not worth it at the moment IMO. Implementing this offers the following advantages: 1. **Security:** As we host resources from the same domain by design we don't have to worry about 'self' anymore being in the whitelist 2. **Performance:** We can move oc.js again to inline JS. This makes the loading way quicker as we don't have to load on every load of a new web page a blocking dynamically non-cached JavaScript file. If you want to toy with CSP see also https://csp-evaluator.withgoogle.com/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Storage 503 message improvementsVincent Petry2016-10-241-1/+1
|/ / | | | | | | | | "Storage not available" is now "Storage temporarily not available". Exceptions are now logged in DEBUG level, not FATAL.
* / Allow 4byte unicode filenames on supported platformsRobin Appelman2016-10-201-0/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #1449 from nextcloud/comments-user-mentionMorris Jobke2016-10-173-3/+52
|\ | | | | Notifications for simple @-mentioning in comments
| * emit pre-update event for commentsArthur Schiwon2016-10-121-3/+4
| | | | | | | | | | | | | | * notifications can be cleaned up, no polluted DB * updating comments will re-notify users or remove notifications, depending on the message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-072-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (WIP) notify user when mentioned in comments Fix doc, and create absolute URL for as notification link. PSR-4 compatibility changes also move notification creation to comments app Do not notify yourself unit test for controller and application smaller fixes - translatable app name - remove doubles in mention array - micro perf optimization - display name: special label for deleted users, keep user id for users that could not be fetched from userManager Comment Notification-Listener Unit Test fix email adresses remove notification when triggering comment was deleted add and adjust tests add missing @license tags simplify NotificationsController registration appinfo simplification, php docs make string easier to translate adjust test replace dispatcher-based listeners with a registration method and interface safer to not pass optional data parameter to setSubject for marking as processed. ID and mention suffices Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> update comment Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | optimize Folder::getById to use less queriesRobin Appelman2016-10-121-0/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add an icon to the notification APIJoas Schilling2016-10-071-7/+21
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add proper exception documentation for ISimpleFS interfaceMorris Jobke2016-10-051-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate old app folderRoeland Jago Douma2016-10-051-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* avatar to appdataRoeland Jago Douma2016-10-051-0/+1
| | | | | | * Fix AvatarTest Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Initial AppDataRoeland Jago Douma2016-10-055-4/+287
| | | | | | | | | | | | * 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>
* write channel to config file when changedMorris Jobke2016-09-261-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add trict CSP to OCS responsesRoeland Jago Douma2016-09-151-3/+3
| | | | | If a repsonse now explicitly has the Empty CSP set then the middleware won't touch it.
* Split OCS version handlingRoeland Jago Douma2016-09-061-13/+19
| | | | | | This cleans up a bit the OCSController/Middleware. Since the 2 versions of OCS differ a bit. Moved a lot of stuff internal since it is of no concern to the outside.
* Add FileDisplayResponseRoeland Jago Douma2016-09-051-0/+70
| | | | | A lazy implementation of the DisplayResponse that only hits the filesystem if the etag and mtime do not match.
* Merge pull request #1158 from nextcloud/cache_avatarsLukas Reschke2016-09-051-2/+1
|\ | | | | Cache avatars
| * Cache avatars properlyRoeland Jago Douma2016-08-301-2/+1
| | | | | | | | | | * Set proper caching headers for avatars (15 minutes) * For our own avatar use some extra logic to invalidate when we update
* | Merge pull request #1271 from nextcloud/fix-docs-for-notificationsJoas Schilling2016-09-052-4/+0
|\ \ | | | | | | Null !== void, those methods are void
| * | Null !== void, those methods are voidJoas Schilling2016-09-052-4/+0
| |/
* / Deprecate OCSResponeRoeland Jago Douma2016-09-051-2/+3
|/ | | | | The OCSResponse should not be used by apps. They should extend the OCSController and use normal DataResponses instead.
* add stacktrace to query loggerRobin Appelman2016-08-241-0/+12
|
* Validate the operationJoas Schilling2016-08-191-0/+39
|
* Fix constant name, copy-pasterinoJoas Schilling2016-08-171-1/+1
|
* Merge pull request #892 from nextcloud/fix_phpdocRoeland Jago Douma2016-08-171-2/+2
|\ | | | | Some scrutinizer phpdoc fixes
| * Fix IL10N phpdocRoeland Jago Douma2016-08-161-2/+2
| |
* | check registered sections and settings after an app got updated to garbage ↵Arthur Schiwon2016-08-162-0/+20
| | | | | | | | collect orphaned classes
* | attempt to remove section and settings entries when an app got disabledArthur Schiwon2016-08-161-0/+14
| |
* | Merge branch 'master' into implement_712Lukas Reschke2016-08-112-11/+12
|\|
| * Merge pull request #807 from nextcloud/ocs_dataresponseRoeland Jago Douma2016-08-101-11/+4
| |\ | | | | | | OCSController requires DataResponse
| | * OCSController requires DataResponseRoeland Jago Douma2016-08-101-11/+4
| | | | | | | | | | | | | | | | | | The OCS Controller requires a DataResponse object to be returned. This means that all error handling will have to be done via exceptions thrown and handling in the middleware.
| * | get shared storage storage id without setting up the storageRobin Appelman2016-08-091-0/+8
| |/