summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #26271 from owncloud/stable9.1-initmountpoints-userid-casingVincent Petry2016-10-184-2/+125
|\ | | | | [stable9.1] Fix user casing in initMountPoints
| * Add using casing check/fix for initMountPointsVincent Petry2016-10-184-2/+125
| |
* | PHP 5.4 compliantThomas Müller2016-10-131-1/+1
| |
* | [stable9.1] Merge pull request #26295 from ↵Vincent Petry2016-10-131-4/+8
| | | | | | | | | | | | owncloud/analyse-dependencies-on-app-enable-as-well App dependencies are now analysed on app enable as well - not only on app install.
* | Fix testThomas Müller2016-10-121-0/+1
| |
* | Fix the tests for 9.1Thomas Müller2016-10-122-2/+3
| |
* | [stable9.1] Add missing unit tests (#25936)Thomas Müller2016-10-124-107/+143
| | | | | | | | | | | | | | | | * Adjust unit test execution after folder rename * Adjust login controller tests to match current behavior * Fix broken unit tests
* | [stable9.1] Don't parse info.xml but reuse already cached app infos - fixes ↵Thomas Müller2016-10-103-19/+6
|/ | | | | | | | | | #25603 (#25968) * Don't parse info.xml but reuse already cached app infos - fixes #25603 * Use === in InfoParser. Fixes test * InfoParser should not depend on UrlGenerator - fixes issue with session being closed too early
* [stable9.1] Fix logClientIn for non-existing users (#26292) (#26307)Thomas Müller2016-10-101-0/+26
| | | | | | | The check for two factor enforcement would return true for non-existing users. This fix makes it return false in order to be able to perform the regular login which will then fail and return false. This prevents throwing PasswordLoginForbidden for non-existing users.
* Allow one more origin. Log the reason of occ controller failure (#26031)VicDeo2016-10-041-3/+7
| | | | | | * Log the reason of occ controller failure * Allow requests from SERVER_ADDR
* Merge pull request #26148 from ↵Vincent Petry2016-09-201-0/+31
|\ | | | | | | | | owncloud/stable9.1-c97f24efbaec7756667368568b0c5d7b506d864f [stable9.1] Redirect to challenge page when only one 2FA provider
| * [stable9.1] Redirect to challenge page when only one 2FA provider (#26141)Vincent Petry2016-09-191-0/+31
| | | | | | | | | | If only one two factor provider exists, spare the user from having to select it and redirect directly to its challenge page.
* | [stable9.1] Fix mimetype detection inside hidden folders (#26138) (#26151)Thomas Müller2016-09-201-0/+2
|/
* 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] Especially with coverage enabled execution times are pretty high ↵Thomas Müller2016-07-251-0/+3
| | | | (#25517) (#25595)
* [stable9.1] Test jenkins pipeline (#25401) (#25501)Thomas Müller2016-07-211-1/+3
|
* [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
* [stable9.1] Revert invalid commits from master->stable9.1 merge (#25420)Vincent Petry2016-07-081-36/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "Merge pull request #25240 from owncloud/remove-svg" This reverts commit 8b8d2b679a12f703141de9da71340f1f02151f3d, reversing changes made to a35747b6fa8f7704bf7333f16a2b867b76acb187. * Revert "Merge pull request #25253 from owncloud/users-fixotherquotadropdown" This reverts commit a35747b6fa8f7704bf7333f16a2b867b76acb187, reversing changes made to a573b6863cbb4eb21feb7fe5a17a9b8fc60cf059. * Revert "Merge pull request #25314 from owncloud/files_external-backends-config" This reverts commit a573b6863cbb4eb21feb7fe5a17a9b8fc60cf059, reversing changes made to 8147eefaeba3822c9331283e973006ad3aeac1f5. * Revert "Add all properties while creating a subscription (#25318)" This reverts commit aaf4c3073af2511ab895e982cadae8dc6a143e55. * Revert "Merge pull request #25276 from owncloud/delete-own-session-token" This reverts commit e42ce62ce2855c95861eeae669508e5c20f99be4, reversing changes made to aaf4c3073af2511ab895e982cadae8dc6a143e55. * Revert "Merge pull request #25262 from owncloud/fed-sharing-error" This reverts commit 027715f9acba4dc314a7e4c63ac41a58d4e33f22, reversing changes made to e42ce62ce2855c95861eeae669508e5c20f99be4.
* [stable9.1] Set content type when downloading log file to force download in ↵Thomas Müller2016-07-081-0/+3
| | | | some browsers (#25382) (#25397)
* fix swift primary object store test (#25281)Thomas Müller2016-07-052-1/+55
| | | | | | | | | | | | | * Wait for socket to be open * Fix call on null * Allow DB access for MountProviderTest Makes unit tests pass when using object store, since their FS access is actually oc_filecache DB access. It is currently not possible to mock or bypass the logic from "SharedMount::verifyMountPoint()" triggered by this test.
* Merge pull request #25276 from owncloud/delete-own-session-tokenVincent Petry2016-07-011-5/+36
|\ | | | | prevent users from deleting their own session token
| * prevent users from deleting their own session tokenChristoph Wurst2016-06-281-5/+36
| |
* | 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
| |
* | occ web executor (#24957)VicDeo2016-06-221-0/+143
| | | | | | | | | | | | | | | | | | | | | | | | * Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
* | 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
|