summaryrefslogtreecommitdiffstats
path: root/tests/settings
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16402 from owncloud/issue-15956-slow-group-usercountThomas Müller2015-06-081-9/+9
|\ | | | | Sort user groups by group name and hide the user count
| * Sort user groups by group name and hide the user countJoas Schilling2015-05-181-9/+9
| |
* | Move the helpful method to the TestCase classJoas Schilling2015-06-032-11/+11
| |
* | Add check for availability of /dev/urandomLukas Reschke2015-05-261-1/+7
|/ | | | | | | | | | | | | | | Without /dev/urandom being available to read the medium RNG will rely only on the following components on a Linux system: 1. MicroTime: microtime() . memory_get_usage() as seed and then a garbage collected microtime for loop 2. MTRand: chr((mt_rand() ^ mt_rand()) % 256) 3. Rand: chr((rand() ^ rand()) % 256) 4. UniqId: Plain uniqid() An adversary with the possibility to predict the seed used by the PHP process may thus be able to predict future tokens which is an unwanted behaviour. One should note that this behaviour is documented in our documentation to ensure that users get aware of this even without reading our documentation this will add a post setup check to the administrative interface. Thanks to David Black from d1b.org for bringing this again to our attention.
* Merge pull request #15978 from owncloud/feature/fix-encryption-tooltipsThomas Müller2015-05-151-9/+9
|\ | | | | [enc2]fixing recovery tooltip
| * fixing testClark Tomlinson2015-05-111-9/+9
| |
* | Add test for setEmailAddressJoas Schilling2015-05-051-0/+70
|/
* Adjust tests and statuscodeLukas Reschke2015-04-201-3/+3
|
* Migrate personal certificate handling into AppFramework controllersLukas Reschke2015-04-201-0/+174
| | | | Also added unit-tests and better error-handling
* Merge pull request #15314 from owncloud/app-categories-15274Lukas Reschke2015-04-091-0/+231
|\ | | | | Add different trust levels to AppStore interface
| * Add experimental applications switchLukas Reschke2015-04-031-0/+231
| | | | | | | | Allows administrators to disable or enabled experimental applications as well as show the trust level.
* | Remove hardcoded link to performance docsJoas Schilling2015-04-071-3/+14
|/
* Add check for activated local memcacheLukas Reschke2015-03-281-0/+231
| | | | | | Also used the opportunity to refactor it into an AppFramework controller so that we can unit test it. Fixes https://github.com/owncloud/core/issues/14956
* use StreamResponse to download the log file - fixes #14268Thomas Müller2015-03-271-9/+3
|
* Show more detailed error messageLukas Reschke2015-03-161-0/+3
|
* Adjust unit testLukas Reschke2015-03-161-1/+6
|
* Migrate to SwiftMailLukas Reschke2015-03-162-49/+75
| | | | | | | | | | | | | | | | | | | | | Replaces the OC_Mail and phpmailer with SwiftMail allowing us to mock it properly. Fixes the unit test execution on master on local machines and https://github.com/owncloud/core/issues/12014 Conflicts: 3rdparty lib/private/server.php lib/public/iservercontainer.php tests/lib/mail.php tests/settings/controller/mailsettingscontrollertest.php Conflicts: 3rdparty lib/private/mail.php lib/private/server.php lib/public/iservercontainer.php settings/ajax/lostpassword.php settings/application.php
* Let users configure security headers in their WebserverLukas Reschke2015-03-021-71/+0
| | | | | | | | | | Doing this in the PHP code is not the right approach for multiple reasons: 1. A bug in the PHP code prevents them from being added to the response. 2. They are only added when something is served via PHP and not in other cases (that makes for example the newest IE UXSS which is not yet patched by Microsoft exploitable on ownCloud) 3. Some headers such as the Strict-Transport-Security might require custom modifications by administrators. This was not possible before and lead to buggy situations. This pull request moves those headers out of the PHP code and adds a security check to the admin settings performed via JS.
* fixing unit tests in UsersControllerTestThomas Müller2015-02-161-11/+11
|
* 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.
* | Switch to a factory and add unit testsLukas Reschke2015-01-301-33/+373
| |
* | Add unit testsLukas Reschke2015-01-302-8/+189
|/
* 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
* Use setConfigs() instead of calling setConfig() multiple timesJoas Schilling2015-01-231-30/+33
|
* 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
* add Download logfile button to admin settingsGeorg Ehrke2015-01-071-0/+79
| | | | | | | | | | | | | | | | | | | | add logSettingsController add download logfile button move getEntries to LogSettingsController move set log level to logsettingscontroller.php add warning if logfile is bigger than 100MB add unit test for set log level fix typecasting, add new line at EoF show log and logfile download only if log_type is set to owncloud add unit test for getFilenameForDownload
* Mail address of users is now changable in the user managementMorris Jobke2014-12-181-14/+36
| | | | | | | | | | | * introduced new route settings/users/{id}/mailAddress * kept old responses * better error messages * dropped lostpassword.php from settings/ajax * cleaned up the UserList.add() and hand in user object instead of each attribute as another parameter * check for change permission of mail address * proper response messages
* add unit tests for new user create mailMorris Jobke2014-12-161-0/+70
|
* Merge pull request #12726 from owncloud/add-filter-for-backend-to-rest-indexMorris Jobke2014-12-131-3/+86
|\ | | | | Add filter for backend to rest index
| * Use array key instead of valueLukas Reschke2014-12-121-3/+14
| |
| * Add test for user without backendLukas Reschke2014-12-121-0/+16
| |
| * Add filter for 'backend' to user REST routeLukas Reschke2014-12-101-0/+56
| | | | | | | | | | | | | | | | This adds a "backend" type filter to the index REST route which is a pre-requisite for https://github.com/owncloud/core/issues/12620 For example when calling `index.php/settings/users/users?offset=0&limit=10&gid=&pattern=&backend=OC_User_Database` only users within the backend `OC_User_Database` would be shown. (requires sending a CSRF token as well) Depends upon https://github.com/owncloud/core/pull/12711
* | Show user backend in user managementMorris Jobke2014-12-121-2/+12
|/ | | | | | | * add switch to settings to show user backend * user classes for headers and rows to unify the show/hide statement * add user backend to response of user create request * proper markup in settings area
* Expose backend type via REST APILukas Reschke2014-12-091-38/+77
| | | | | | | | | This change will expose the user backend via the REST API which is a pre-requisite for https://github.com/owncloud/core/issues/12620. For example: ````json [{"name":"9707A09E-CA9A-4ABE-A66A-3F632F16C409","displayname":"Document Conversion User Account","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/9707A09E-CA9A-4ABE-A66A-3F632F16C409","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"ED86733E-745C-4E4D-90CB-278A9737DB3C","displayname":"Hacker","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/ED86733E-745C-4E4D-90CB-278A9737DB3C","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"71CDF45B-E125-450D-983C-D9192F36EC88","displayname":"admin","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/71CDF45B-E125-450D-983C-D9192F36EC88","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"admin","displayname":"admin","groups":["admin"],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/admin","lastLogin":"1418057287","backend":"OC_User_Database"},{"name":"test","displayname":"test","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/test","lastLogin":0,"backend":"OC_User_Database"}] ```
* React on other statuscodes than 200Lukas Reschke2014-12-082-22/+9
|
* Add statuscodesLukas Reschke2014-12-082-10/+86
|
* Add REST route for user & group managementLukas Reschke2014-12-083-0/+618
| | | | First step of a somewhat testable user management. - I know, the JSON returns are in an ugly format but the JS expects it that way. So let's keep it that way until we have time to fix the JS in the future.
* Make root tests extend the \Test\TestCaseJoas Schilling2014-11-191-1/+3
|
* Warn for password reset when files_encryption is enabledLukas Reschke2014-11-171-1/+1
| | | | | | | | This patch wil warn the user of the consequences when resetting the password and requires checking a checkbox (as we had in the past) to reset a password. Furthermore I updated the code to use our new classes and added some unit tests for it :dancers: Fixes https://github.com/owncloud/core/issues/11438
* Fail...Lukas Reschke2014-11-141-1/+1
|
* Mark skipped until #12085 is mergedLukas Reschke2014-11-141-0/+6
| | | See https://github.com/owncloud/core/pull/12175#issuecomment-63054620
* Migrate "setsecurity.php" to the AppFrameworkLukas Reschke2014-11-031-0/+138
| | | | | | | | | | | | Add switch to enforce SSL for subdomains Add unit tests Add test for boolean values Camel-case Fix ugly JS
* Fix unit testLukas Reschke2014-10-161-3/+3
| | | Regression introduced with https://github.com/owncloud/core/pull/11615
* Refactor MailSettings controllerLukas Reschke2014-10-141-0/+196
- Do not store the password (fixes https://github.com/owncloud/core/issues/11385) - Refactor to AppFramework - Add unit tests Conflicts: settings/admin/controller.php