summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Allow AppFramework applications to specify a custom CSP headerLukas Reschke2015-02-164-6/+250
| | | | | | | | | | | | | | | This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components. Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers: ```php $response = new TemplateResponse('activity', 'list', []); $cspHelper = new ContentSecurityPolicyHelper(); $cspHelper->addAllowedScriptDomain('www.owncloud.org'); $response->addHeader('Content-Security-Policy', $cspHelper->getPolicy()); return $response; ``` Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
* Merge pull request #13780 from owncloud/cmreflector-inheritanceLukas Reschke2015-02-121-2/+58
|\ | | | | Additional controllermethodreflector inheritance tests
| * another test for overriding the docblockBernhard Posselt2015-01-291-0/+14
| |
| * additional inheritance testsBernhard Posselt2015-01-291-2/+44
| |
* | Merge pull request #13979 from ↵Vincent Petry2015-02-111-0/+11
|\ \ | | | | | | | | | | | | owncloud/group-share-collition-wrong-type-in-post-hook Do not overwrite the shareType so the post hook is still correct
| * | Add a test for the post_shared hook shareTypeJoas Schilling2015-02-091-0/+11
| | |
* | | Request requires a second parameterThomas Müller2015-02-091-6/+16
| | |
* | | Merge pull request #13921 from owncloud/ocs-afVincent Petry2015-02-093-1/+198
|\ \ \ | | | | | | | | Add a controller and reponse for ocs
| * | | fix license emailBernhard Posselt2015-02-051-1/+1
| | | |
| * | | fix license emailBernhard Posselt2015-02-052-2/+2
| | | |
| * | | add a controller and reponse for ocsBernhard Posselt2015-02-052-0/+197
| | | |
* | | | Respect `mod_unique_id` and refactor `OC_Request::getRequestId`Lukas Reschke2015-02-0910-96/+195
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `mod_unique_id` is enabled the ID generated by it will be used for logging. This allows for correlation of the Apache logs and the ownCloud logs. Testplan: - [ ] When `mod_unique_id` is enabled the request ID equals the one generated by `mod_unique_id`. - [ ] When `mod_unique_id` is not available the request ID is a 20 character long random string - [ ] The generated Id is stable over the lifespan of one request Changeset looks a little bit larger since I had to adjust every unit test using the HTTP\Request class for proper DI. Fixes https://github.com/owncloud/core/issues/13366
* | | Merge pull request #12283 from oparoz/sfnt-fontsMorris Jobke2015-02-071-0/+105
|\ \ \ | | | | | | | | Updated the media type of some font types
| * | | Updated the media type of some font typesOlivier Paroz2015-01-241-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TTF and TTF have now the same media type Official since 2013 and supported by Firefox and Chrome https://www.iana.org/assignments/media-types/application/font-sfnt Introducing support for Type1 fonts
* | | | Merge pull request #13753 from owncloud/use-403-instead-of-200Morris Jobke2015-02-071-4/+2
|\ \ \ \ | | | | | | | | | | Use 403 instead of 200 response
| * | | | Use 403 instead of 200 responseLukas Reschke2015-01-291-4/+2
| | | | | | | | | | | | | | | | | | | | A forbidden should throw a 403 and this makes it easier for me to do some automated testing.
* | | | | Normalize before processingLukas Reschke2015-02-062-0/+31
| |_|/ / |/| | |
* | | | detect root of mountpoint also if the trailing slash is missedBjoern Schiessle2015-02-041-0/+22
| | | |
* | | | Merge pull request #13811 from owncloud/default-to-nullLukas Reschke2015-02-021-27/+37
|\ \ \ \ | | | | | | | | | | Default to `null` for lostpassword
| * | | | Mock l10n in the setupLukas Reschke2015-02-011-26/+23
| | | | |
| * | | | Add unit tests for empty tokenLukas Reschke2015-02-011-2/+15
| | | | |
* | | | | Switch to a factory and add unit testsLukas Reschke2015-01-301-33/+373
| | | | |
* | | | | Add unit testsLukas Reschke2015-01-302-8/+189
|/ / / /
* | | / Dont remove a file from cache if the delete operation failedRobin Appelman2015-01-291-0/+23
| |_|/ |/| |
* | | Fix webdav put for single file webdav sharesRobin Appelman2015-01-291-0/+25
| | |
* | | Fix resolving paths for views rooted in a fileRobin Appelman2015-01-291-0/+16
| | |
* | | Add unit testRobin Appelman2015-01-281-1/+3
|/ /
* | Merge pull request #13717 from owncloud/storage-donotwrapnullstorageMorris Jobke2015-01-281-0/+69
|\ \ | | | | | | Prevent wrapping null storage
| * | Prevent wrapping null storageVincent Petry2015-01-271-0/+69
| | | | | | | | | | | | | | | | | | Can happen when trying to instantiate external storages that have incomplete config, where the constructor throws an exception (the exception is caught in createStorage())
* | | Merge pull request #13561 from owncloud/trash-finaldeletewhencrossstoragefixVincent Petry2015-01-271-1/+28
|\ \ \ | |/ / |/| | Call final unlink in trash wrapper's storage
| * | Preserve mtime when doing cross storage moveRobin Appelman2015-01-231-1/+28
| | |
* | | Merge pull request #13636 from ↵Lukas Reschke2015-01-271-27/+166
|\ \ \ | | | | | | | | | | | | | | | | owncloud/add-warning-if-restore-of-data-is-not-possible Add value if restore of data is possible for a user
| * | | Add value if restore of data is possible for a userMorris Jobke2015-01-271-27/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * reason: nice to know before password change in user management * restore is possible: * encryption is disabled * encryption is enabled, admin and user has checked the restore option * if not possible: * highlight users row in red once the admin wants to change the password * show also a little tipsy
* | | | certificate manager should always use a \OC\Files\View otherwise we will get ↵Bjoern Schiessle2015-01-261-2/+2
| | | | | | | | | | | | | | | | problems for different primary storages
* | | | certificate manager only needs the user-id, no need to pass on the complete ↵Bjoern Schiessle2015-01-261-4/+2
|/ / / | | | | | | | | | user object
* | | Merge pull request #13621 from owncloud/system-config-multisetThomas Müller2015-01-262-30/+63
|\ \ \ | |_|/ |/| | Add a method to set/unset multiple config values with one write
| * | Use setConfigs() instead of calling setConfig() multiple timesJoas Schilling2015-01-231-30/+33
| | |
| * | Add a method to set/unset multiple config values in one callJoas Schilling2015-01-231-0/+30
| | | | | | | | | | | | | | | This reduces the number of file writes we do for config.php and therefor hopefully helps lowering the chances for empty config.php files
* | | Do not retrieve shares through group if user has no groupVincent Petry2015-01-231-1/+26
|/ /
* | Fix undefined offset 1 for wrong user mail addressMorris Jobke2015-01-221-12/+24
| | | | | | | | * fixes Undefined offset: 1 at lib/private/mail.php#143
* | Merge pull request #13509 from owncloud/share-deletechildrenwhenunsharefromgroupMorris Jobke2015-01-221-0/+47
|\ \ | | | | | | Fix reshare permission change to not impair other deletion code
| * | Fix reshare permission change to not impair other deletion codeVincent Petry2015-01-221-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change that prevents reshare permission changes to delete group share children had the side-effect of also preventing group share children deletion when it needed to be done. This fix adds an extra flag to isolate the "reshare permission change" deletion case and keep the other ones as they were before, not only to fix the regression but also fix other potential regressions in code that uses this method. Also updated the comment because now Helper::delete() is no longer limited to reshares but also applies to group share children.
* | | Merge pull request #13552 from owncloud/request-uri-double-slashThomas Müller2015-01-211-0/+1
|\ \ \ | | | | | | | | Remove duplicated slashes from the requested url
| * | | Add unit testRobin Appelman2015-01-211-0/+1
| | |/ | |/|
* / | Add unit test for external share JS dialogVincent Petry2015-01-211-1/+2
|/ / | | | | | | | | | | Moved external share JS code into a small plugin to make it testable. Added unit test for the external share dialog logic + ajax calls.
* | Add a test case for memcaches to store an arrayJoas Schilling2015-01-201-0/+6
| |
* | Fix chunked query for tags + unit testVincent Petry2015-01-191-3/+29
|/
* Merge pull request #13423 from ↵Thomas Müller2015-01-191-0/+35
|\ | | | | | | | | owncloud/share-fixfindshareforuserwithmultiplegroups Fix getItemSharedWithUser for groups
| * Fix getItemSharedWithUser for groupsVincent Petry2015-01-161-0/+35
| | | | | | | | | | | | Fixed SQL query for whenever a user has more than one group. Added missing $owner where clause for group lookup. Added unit tests for the group cases.
* | Fix filtering for users when $gid is emptyLukas Reschke2015-01-181-0/+127
| | | | | | | | | | | | Previously when $gid was empty the users were not filtered at all. Rendering the search function in the user management pretty useless. Fixes itself