summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Prefilter inaccessible shares in DefaultShareProvider::getSharedWith()Vincent Petry2016-09-071-23/+157
| | | | | | | | | The DefaultShareProvider now does a DB-level check to find out whether file_source is accessible at all (deleted file) or whether it's in the trashbin of a home storage. One small corner case where the home storage id is in md5 form cannot be covered properly with this approach.
* [stable9.1] Fix failing preview unit tests (#26039)Thomas Müller2016-09-061-28/+21
|
* [stable9.1] Don't log credentials of LoginController::tryLogin (#25902) (#25935)Thomas Müller2016-08-291-4/+39
| | | | | * Don't log credentials of LoginController::tryLogin - fixes #25895 * Don't log password in loginWithPassword
* [stable9.1] Fix empty PATH_INFO (#25904)Thomas Müller2016-08-221-3/+23
|
* [stable9.1] Dont decrypt shared files (#25831)Vincent Petry2016-08-181-3/+7
| | | | | | * Take from https://github.com/nextcloud/server/pull/608/commits/351cab6bce41b53f9efd4ba9aed4e7435f843691 - THX @schiessle * Fix unit tests
* Improve regexp to detect duplicate folders when repairing unmerged sharesVincent Petry2016-08-171-34/+68
|
* Fix unmerged shares repair with mixed group and direct sharesVincent Petry2016-08-161-1/+44
| | | | | | | Whenever a group share is created after a direct share, the stime order needs to be properly considered in the repair routine, considering that the direct user share is appended to the $subShares array and breaking its order.
* Improve file_target finding logic when repairing unmerged sharesVincent Petry2016-08-161-9/+57
| | | | | | | Pick the most recent subshare that has no parenthesis from duplication which should match whichever name the user picked last. If all subshares have duplicate parenthesis names, use the least recent group share's target instead.
* Merge pull request #25737 from ↵Vincent Petry2016-08-111-2/+11
|\ | | | | | | | | owncloud/stable9.1-99611d277521b84a943f68d48fe05f290127db7e [stable9.1] getJailedPath expects $path to have a trailing / (#25703)
| * [stable9.1] getJailedPath expects $path to have a trailing / (#25703)Thomas Müller2016-08-091-2/+11
| | | | | | | | | | | | * getJailedPath expects $path to have a trailing / - fixes #25464 * Adding test case for getPathById including a jailed cache where root is just empty
* | [Stable9.1] fix unit test on new jenkins setup and adjust Jenkinsfile (#25772)Thomas Müller2016-08-111-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | * [stable9.1] Next step jenkinsfile (#25622) * Adding timestamper and evaluation of test results even in case of failure * Adding build timeout * use fixed value 120 minutes as timeout for each test executing for now * Terminate the build as soon as test execution fails * Adjust external testing as well * Finalize use of executeAndReport * [stable9.1] Fix discoverymanager tests (#25769) * Allow testing of the DiscoveryManager * Array sort order is of no relevance
* [stable9.1] Group shares with same source and target (#25534)Vincent Petry2016-07-261-0/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Group shares with same source and target Fixes #24575 Note that this is a very limited solution and eventually we want smarter merging! * Add integration tests for merging received shares * Improved share grouping readability + fixed test * Add repair step for unmerged shares (WIP) * Added more tests for sharing's MountProvider * Group incoming shares for resharing in JS * Adjust repair version check for unmerged shares * Fix RepairUnmergedShares to not skip valid repair cases The repair step was a bit overeager to skip repairing so it missed the case where a group share exists without subshares but with an additional direct user share. * Add integration tests for double shares with rename in between * Make share target consistent when grouping group share with user share In some situations, a group share is created before a user share, and the recipient renamed the received share before the latter is created. In this situation, the "file_target" was already modified and the second created share must align to the already renamed share. To achieve this, the MountProvider now groups only by "item_source" value and sorts by share time. This makes it so that the least recent share is selected as super-share and its "file_target" value is then adjusted in all grouped shares. This fixes the issue where this situation would have different "file_target" values resulting in two shared folders appearing instead of one.
* [stable9.1] Adding certificate revocation list and validate if the app ↵Vincent Petry2016-07-131-8/+64
| | | | | | | | certificate is revoked (#25468) * Adding certificate revocation list and validate if the app certificate is revoked * Check integrity of a signed app in any case on installation
* Various database migration fixes (#25209)Thomas Müller2016-06-297-3/+1599
| | | | | | | | | | | | | * String columns with a length higher then 4000 are converted into a CLOB columns automagically - we have to respect this when migrating * Adding schema migration tests to prevent unnecessary and non-sense migration steps Fix Oracle autoincrement and unsigned handling * Fix sqlite integer type for autoincrement * Use lower case table names - fixes pg * Fix postgres with default -1 - this only affect pg 9.4 servers - 9.5 seems to work fine
* Login hooks (#25260)Christoph Wurst2016-06-271-1/+4
| | | | | | | | | | | | * fix login hooks * adjust user session tests * fix login return value of successful token logins * trigger preLogin hook earlier; extract method 'loginWithPassword' * call postLogin hook earlier; add PHPDoc
* Merge pull request #25250 from owncloud/linkshare-includedeletewithuploadpermsVincent Petry2016-06-272-18/+87
|\ | | | | Add explicit delete permission to link shares
| * Repair step to adjust link share delete permissionsVincent Petry2016-06-241-0/+87
| |
| * Add explicit delete permission to link sharesVincent Petry2016-06-241-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | Link shares always allowed deletion, however internally the permissions were stored as 7 which lacked delete permissions. This created an inconsistency in the Webdav permissions. This fix makes sure we include delete permissions in the share permissions, which now become 15. In case a client is still passing 7 for legacy reasons, it gets converted automatically to 15.
* | check login name when authenticating with client tokenChristoph Wurst2016-06-241-0/+30
|/
* Merge pull request #25172 from owncloud/token-login-validationVincent Petry2016-06-223-107/+97
|\ | | | | Token login validation
| * fix unit test warning/errorsChristoph Wurst2016-06-201-15/+16
| |
| * fix DefaultTokenMapperTestChristoph Wurst2016-06-201-0/+4
| |
| * fix default token provider testsChristoph Wurst2016-06-201-26/+0
| |
| * fix user session testsChristoph Wurst2016-06-201-73/+73
| |
| * use token last_activity instead of session valueChristoph Wurst2016-06-171-1/+12
| |
* | update session token password on user password changeChristoph Wurst2016-06-212-0/+98
| |
* | add PasswordLoginForbiddenExceptionChristoph Wurst2016-06-172-2/+33
|/
* assert app is loaded in unit testsChristoph Wurst2016-06-161-0/+7
|
* load 2FA provider apps before querying classesChristoph Wurst2016-06-161-1/+4
|
* Merge pull request #24415 from owncloud/optimize_sharingdisabled_for_userVincent Petry2016-06-161-0/+7
|\ | | | | Optimize isSharingDisabledForUser
| * Fix unit testsRoeland Jago Douma2016-06-141-0/+7
| |
* | Merge pull request #25075 from owncloud/fix_23265Vincent Petry2016-06-161-0/+194
|\ \ | | | | | | Remove shares of the root folder
| * | Remove shares of the root folderRoeland Jago Douma2016-06-131-0/+194
| | | | | | | | | | | | | | | | | | Fixes #23265 (A possibly costly) repair job to remove cyclic shares.
* | | Merge pull request #25093 from ↵Vincent Petry2016-06-151-3/+25
|\ \ \ | | | | | | | | | | | | | | | | owncloud/issue-12816-clean-tags-from-deleted-users Clean up tags of deleted users
| * | | Clean up tags of deleted usersJoas Schilling2016-06-141-3/+25
| | |/ | |/|
* / | create session token only for clients that support cookiesChristoph Wurst2016-06-131-3/+45
|/ /
* / fail hard if 2fa provider can not be loaded (#25061)Christoph Wurst2016-06-131-3/+24
|/
* Merge pull request #24863 from owncloud/propagator-batchingVincent Petry2016-06-101-0/+125
|\ | | | | Propagator batching for the file scanner
| * add tests for propagator batchingRobin Appelman2016-06-021-0/+125
| |
* | Add not-null columns for oracleJoas Schilling2016-06-101-0/+9
| |
* | Repair job to fix permissions for avatarsRoeland Jago Douma2016-06-101-0/+180
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
* | Add repair step to clean old calendar/contact sharesRoeland Jago Douma2016-06-091-0/+160
| | | | | | | | fixes #21889
* | Merge pull request #24973 from owncloud/token-password-session-tokenVincent Petry2016-06-091-24/+135
|\ \ | | | | | | When creating a session token, make sure it's the login password and …
| * | When creating a session token, make sure it's the login password and not a ↵Christoph Wurst2016-06-081-24/+135
| | | | | | | | | | | | device token
* | | Merge pull request #24826 from owncloud/cors-client-loginVincent Petry2016-06-091-5/+6
|\ \ \ | | | | | | | | use client login method on CORS routes
| * | | use client login method on CORS routesChristoph Wurst2016-06-081-5/+6
| |/ /
* / / Do not log token or challenge with exception stacktrace (#25026)Joas Schilling2016-06-081-3/+3
|/ / | | | | | | | | | | * Make the filtering better readable * Add some more methods to the sensitive list
* | Merge pull request #24899 from owncloud/local-storage-symlinksVincent Petry2016-06-081-0/+31
|\ \ | | | | | | dissalow symlinks in local storages that point outside the datadir
| * | dissalow symlinks in local storages that point outside the datadirRobin Appelman2016-06-071-0/+31
| | |
* | | Merge pull request #24983 from ↵Vincent Petry2016-06-081-0/+19
|\ \ \ | | | | | | | | | | | | | | | | owncloud/issue-23776-do-not-allow-boolean-user-config Do not allow to store boolean configs, they behave unexpected on postgres