summaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix lib/Joas Schilling2016-05-191-505/+0
|
* Fix unit testsRoeland Jago Douma2016-02-121-7/+7
|
* Add new CSRF manager for unit testing purposesLukas Reschke2016-01-251-5/+0
| | | | 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.
* Remove generateRandomBytes from OC_UtilRoeland Jago Douma2016-01-101-5/+0
|
* Use OCP\Util::getVersion instead of the internal private implementationMorris Jobke2015-12-181-1/+1
|
* Add unit test for nested arraysLukas Reschke2015-12-081-6/+12
|
* Merge pull request #19461 from owncloud/reuse_codeThomas Müller2015-12-031-0/+91
|\ | | | | reuse code
| * add unit tests for OC_Util::add* methodsMorris Jobke2015-11-231-0/+91
| |
* | Replace OC_Config in tests with IConfig callsMorris Jobke2015-12-021-11/+14
| |
* | Support pretty URLsLukas Reschke2015-12-011-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore. Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons. Examples: http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/ Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
* | Further unit test suite tweatsThomas Müller2015-11-301-49/+0
|/
* Fix failing unit test :skull:Thomas Müller2015-11-191-15/+1
|
* Use mocks when testing isSharingDisabledForUserThomas Müller2015-11-191-30/+36
|
* Remove dependency on ICrypto + use XORLukas Reschke2015-10-211-1/+1
|
* save excluded groups in json format - fixes #10983Thomas Müller2015-10-011-1/+1
|
* cache result of \OCP\Util::needUpgrade()Individual IT Services2015-09-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reduce calls of \OCP\Util::needUpgrade() where \OCP\Util::needUpgrade() is called we can call as well self::checkUpgrade and use the cached result In line 877 the call way unnecessary anyway because of the first part of the if statement move caching to \OCP\Util::needUpgrade renaming variable fixing testNeedUpgradeCore() cache result of checkUpgrade() in self::$needUpgrade reduce calls of \OCP\Util::needUpgrade() where \OCP\Util::needUpgrade() is called we can call as well self::checkUpgrade and use the cached result In line 877 the call way unnecessary anyway because of the first part of the if statement move caching to \OCP\Util::needUpgrade renaming variable fixing testNeedUpgradeCore() fix typo in variable name deleting tabs
* Add mitigation against BREACHLukas Reschke2015-08-141-1/+1
| | | | | | | | | | | | While BREACH requires the following three factors to be effectively exploitable we should add another mitigation: 1. Application must support HTTP compression 2. Response most reflect user-controlled input 3. Response should contain sensitive data Especially part 2 is with ownCloud not really given since user-input is usually only echoed if a CSRF token has been passed. To reduce the risk even further it is however sensible to encrypt the CSRF token with a shared secret. Since this will change on every request an attack such as BREACH is not feasible anymore against the CSRF token at least.
* Select the timezone on the right timestamp and assert itJoas Schilling2015-04-071-8/+11
|
* Add check for activated local memcacheLukas Reschke2015-03-281-8/+0
| | | | | | 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
* Check for relative datadirectory pathRobin McCorkell2015-03-271-0/+19
|
* The iran timezone removed the DST handling which breaks the timezone libJoas Schilling2015-03-231-3/+1
|
* Etc timezones don't exist for .5 and .75 offsetsJoas Schilling2015-03-031-3/+18
|
* allow overwriting the appmanager in oc_util by subclassingRobin Appelman2015-02-181-26/+27
|
* Move timezone logic out of server.phpJoas Schilling2014-12-161-1/+1
|
* Deprecate Util::formatDate()Joas Schilling2014-12-101-2/+14
| | | | Make DateTimeFormatter a service and adjust tests that have been inaccurate
* reduce OC_Preferences, OC_Config and \OCP\Config usageMorris Jobke2014-12-081-4/+4
| | | | | | | | | | * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container
* Replace uniqid calls with $this->getUniqueID so tests pass again on windowsJoas Schilling2014-12-031-3/+3
|
* Make root tests extend the \Test\TestCaseJoas Schilling2014-11-191-1/+1
|
* fixing expected values for formatDate() unit testsThomas Müller2014-10-211-3/+3
|
* Merge pull request #11222 from owncloud/store-users-timezone-masterThomas Müller2014-09-231-0/+24
|\ | | | | send browsers timezone back tp the server on login
| * enhance formatDate function to accept an optional argument containing the ↵Thomas Müller2014-09-221-0/+24
| | | | | | | | time zone
* | Use only lower-case lettersLukas Reschke2014-09-221-1/+4
|/ | | | Fixes https://github.com/owncloud/core/issues/11239
* requesttoken has now a length of 30 charsThomas Müller2014-09-101-1/+1
|
* Added test for needUpgrade for coreVincent Petry2014-09-021-0/+19
|
* Fix upgrade process when apps enabled for specific groupsVincent Petry2014-09-021-0/+3
| | | | | | | Fix issue where the currently logged user was causing side-effects when upgrading. Now setting incognito mode (no user) on update to make sure the whole apps list is taken into account with getEnabledApps() or isEnabled().
* Added unit test for default app URLVincent Petry2014-07-011-0/+68
|
* Can't use assertInstanceOf on wrapped storage; use ↵ringmaster2014-06-041-1/+1
| | | | assertTrue(instanceOfStorage() instead.
* updating unit test expectationsThomas Müller2014-05-281-1/+1
|
* allow admin to disable sharing for specific groups of usersBjoern Schiessle2014-05-221-0/+55
|
* Remove uneeded newlineLukas Reschke2014-04-221-1/+0
|
* Fix indentationLukas Reschke2014-04-221-1/+1
|
* Add unit tests for arrays and "Lukas Reschke2014-04-221-5/+23
| | | | OC_Util::sanitizeHTML() also supports array but we actually had no unit test for it. Additionally this commit introduces a test for escaping " into "
* Added extra checks for invalid file chars in newfile.php and newfolder.phpVincent Petry2014-02-181-0/+48
| | | | | | | - added PHP utility function to check for file name validity - fixes issue where a user can create a file called ".." from the files UI - added extra checks to make sure newfile.php and newfolder.php also check for invalid characters
* Add 'mail_from_address' configurationJens-Christian Fischer2014-01-241-0/+9
| | | | | | | | | | | In environments where there are rules for the email addresses, the "from address" that owncloud uses has to be configurable. This patch adds a new configuration variable 'mail_from_address'. If it is configured, owncloud will use this as the sender of *all* emails. (OwnCloud uses 'sharing-noreply' and 'password-noreply' by default). By using the 'mail_from_address' configuration, only this email address will be used.
* Quota storage wrapper is now used for all users in sharing modeVincent Petry2013-11-211-0/+49
| | | | | | | | | When accessing a shared folder, the folder's owner appears as mountpoint but wasn't wrapped by a quota storage wrapper. This fix makes sure that all home storages are wrapped by a quota storage wrapper, if applicable, to make sure quotas are respected when uploading into shared folders.
* Clean up \OC\Utilkondou2013-08-151-2/+2
| | | | | | | | | | - Use camelCase - Add some phpdoc - Fix some indents - Use some more spacing
* Add unittestskondou2013-08-051-0/+30
| | | | | | | | | | Unittests for: - search/result - util - preferences
* adding test case with no /Thomas Müller2013-07-301-0/+1
|
* adding unit tests for OC_Util::basenameThomas Müller2013-07-291-8/+24
|
* Add unit testVictor Dubiniuk2013-07-091-0/+6
|