summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21989 from owncloud/make-csp-modifiableThomas Müller2016-02-015-19/+533
|\ | | | | Add public API to give developers the possibility to adjust the global CSP defaults
| * Add public API to give developers the possibility to adjust the global CSP ↵Lukas Reschke2016-01-285-19/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defaults Allows to inject something into the default content policy. This is for example useful when you're injecting Javascript code into a view belonging to another controller and cannot modify its Content-Security-Policy itself. Note that the adjustment is only applied to applications that use AppFramework controllers. To use this from your `app.php` use `\OC::$server->getContentSecurityPolicyManager()->addDefaultPolicy($policy)`, $policy has to be of type `\OCP\AppFramework\Http\ContentSecurityPolicy`. To test this add something like the following into an `app.php` of any enabled app: ``` $manager = \OC::$server->getContentSecurityPolicyManager(); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFrameDomain('asdf'); $policy->addAllowedScriptDomain('yolo.com'); $policy->allowInlineScript(false); $manager->addDefaultPolicy($policy); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFontDomain('yolo.com'); $manager->addDefaultPolicy($policy); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFrameDomain('banana.com'); $manager->addDefaultPolicy($policy); ``` If you now open the files app the policy should be: ``` Content-Security-Policy:default-src 'none';script-src yolo.com 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src yolo.com 'self';connect-src 'self';media-src 'self';frame-src asdf banana.com 'self' ```
* | Merge pull request #22022 from owncloud/share_ocs_filter_path_sharedwithmeThomas Müller2016-02-011-3/+75
|\ \ | | | | | | Add path filter to OCS Share API shared_with_me=true
| * | Add path filter to OCS Share API ?shared_with_me=trueRoeland Jago Douma2016-01-291-3/+75
| | | | | | | | | | | | | | | | | | This allows all clients to quickly get the share info for a given path. Instead of returning everything and filtering it then manually on the client side.
* | | Merge pull request #21956 from owncloud/cross-cache-moveThomas Müller2016-01-292-2/+33
|\ \ \ | |/ / |/| | Add fallback moveFromCache implementation
| * | Add fallback moveFromCache implementationRobin Appelman2016-01-292-2/+33
| | |
* | | [Share 2.0] When deleting a group share delete childrenRoeland Jago Douma2016-01-281-56/+58
| |/ |/| | | | | | | | | For group shares we can have children. Those are custom shares when a user has moved or deleted a group share. Those also have to be deleted if the group share is removed.
* | Merge pull request #21858 from owncloud/getMountsForFileIdThomas Müller2016-01-281-7/+125
|\ \ | | | | | | add IUserMountCache->getMountsForFileId
| * | Fix failing oracle and postgres testsJoas Schilling2016-01-271-2/+2
| | |
| * | add IUserMountCache->getMountsForFileIdRobin Appelman2016-01-271-7/+125
| |/
* | [Share 2.0] Fix interfaces and commentsRoeland Jago Douma2016-01-282-73/+73
| | | | | | | | | | | | | | | | * Made comments more clear * Removed unneeded methods * IShares shareTime is now a proper DateTime object * IShares getPath -> getNode & setPath -> setNode * Fix unit tests
* | [Share 2.0] Add getShareManager to OCP\IServerContainerRoeland Jago Douma2016-01-271-0/+2
| |
* | [Share 2.0] Move IShare to OCPRoeland Jago Douma2016-01-272-24/+26
| |
* | [Share 2.0] Fix IShareRoeland Jago Douma2016-01-271-3/+3
| |
* | Check whether ownCloud is installedLukas Reschke2016-01-273-77/+195
| | | | | | | | | | | | ownCloud might not yet be setup. This causes an issue as the user config requires a setup ownCloud. Thus this needs a block whether ownCloud is installed or not. Fixes https://github.com/owncloud/core/issues/21955
* | Merge pull request #21940 from ↵Thomas Müller2016-01-271-7/+7
|\ \ | |/ |/| | | | | owncloud/share2_do_not_returned_removed_group_shares [Share 2.0] Properly handle user deleted group shares
| * [Share 2.0] Properly handle user deleted group sharesRoeland Jago Douma2016-01-271-7/+7
| | | | | | | | | | | | If a user deletes a group share we create a special share entry. To the API this is just a normal group share for that user with permissions 0. But we should not return this.
* | Merge pull request #21741 from owncloud/l10n-improvementsThomas Müller2016-01-274-48/+527
|\ \ | | | | | | Move methods to the factory that are not related to translating, but to guessing/finding the language
| * | Add tests for findAvailableLanguagesJoas Schilling2016-01-261-0/+22
| | |
| * | Add tests for findLanguage()Joas Schilling2016-01-262-6/+133
| | |
| * | Remove tests for wrapperJoas Schilling2016-01-261-43/+0
| | |
| * | Add tests for the factoryJoas Schilling2016-01-261-0/+201
| | |
| * | Add tests for the new l10n classJoas Schilling2016-01-261-0/+162
| | |
| * | Move legacy test file to new locationJoas Schilling2016-01-261-5/+11
| | |
| * | Fix the testsJoas Schilling2016-01-261-0/+4
| | |
| * | Move findLanguage() and setLanguageFromRequest() to factoryJoas Schilling2016-01-261-1/+1
| | |
* | | Merge pull request #21887 from owncloud/share2_updateShareThomas Müller2016-01-272-70/+660
|\ \ \ | | | | | | | | [Sharing 2.0] update share
| * | | Fix comments from ThomasRoeland Jago Douma2016-01-262-21/+22
| | | |
| * | | [share 2.0] manager unit testsRoeland Jago Douma2016-01-261-1/+245
| | | |
| * | | [Share 2.0] Fix unit testsRoeland Jago Douma2016-01-261-46/+52
| | | |
| * | | [Share 2.0] Add unit test for the default share providerRoeland Jago Douma2016-01-261-7/+346
| |/ /
* | | Merge pull request #21906 from owncloud/querybuilder-clob-comparisonThomas Müller2016-01-271-4/+86
|\ \ \ | |_|/ |/| | Querybuilder clob comparison
| * | Fix Oracle comparisonsJoas Schilling2016-01-261-17/+39
| | |
| * | Add tests for clob comparisonsJoas Schilling2016-01-261-4/+64
| |/
* / We must resolve to the proper usergroup shareRoeland Jago Douma2016-01-261-0/+21
|/
* Merge pull request #21845 from owncloud/sync-system-addressbook-on-avatar-changeThomas Müller2016-01-262-2/+10
|\ | | | | Changing the avatar of the user emits the changeUser event which trig…
| * Trigger change on avatar deleteThomas Müller2016-01-251-1/+2
| |
| * Assert that User::triggerChange is called upon avatar changeThomas Müller2016-01-251-3/+7
| |
| * Changing the avatar of the user emits the changeUser event which triggers ↵Thomas Müller2016-01-252-2/+5
| | | | | | | | update of the system addressbook
* | Merge pull request #21894 from owncloud/refactor-csrfThomas Müller2016-01-266-9/+414
|\ \ | |/ |/| Add new CSRF manager for unit testing purposes
| * Add new CSRF manager for unit testing purposesLukas Reschke2016-01-256-9/+414
| | | | | | | | This adds a new CSRF manager for unit testing purposes, it's interface is based upon https://github.com/symfony/security-csrf. Due to some of our required custom changes it is however not possible to use the Symfony component directly.
* | Adding support of -1 as size to be passed into get and getFileThomas Müller2016-01-251-4/+17
| |
* | Merge pull request #18444 from owncloud/occ-config-typesThomas Müller2016-01-253-52/+222
|\ \ | |/ |/| occ config:system:set can now set other value types
| * Allow array recursion in getJoas Schilling2016-01-141-3/+15
| |
| * Allow deleting a nested system config valueJoas Schilling2016-01-141-6/+104
| |
| * Retain backwards compatibilityJoas Schilling2016-01-141-25/+15
| |
| * occ config:system:set can now set other value typesRobin McCorkell2016-01-141-43/+113
| | | | | | | | | | | | | | Integers, doubles, booleans and even arrays can now be set, with the --type=... option. Array setting can be specified by passing multiple name arguments, e.g. `./occ config:system:set redis port --value=123 --type=integer`
* | Merge pull request #21841 from owncloud/share2_deletefromselfThomas Müller2016-01-221-2/+300
|\ \ | | | | | | [Share 2.0] Add deleteFromSelf method
| * | [Share 2.0] Add deleteFromSelf methodRoeland Jago Douma2016-01-221-2/+300
| | | | | | | | | | | | | | | | | | | | | This allows recipient to delete a share. For user shares this is the same as deleting (at least for now). But for group shares this means creating a new share with type 2. With permissions set to 0.
* | | Merge pull request #21719 from owncloud/move-notification-api-to-ocpThomas Müller2016-01-224-65/+65
|\ \ \ | |/ / |/| | Move the notification API to public namespace