summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* apply permissions mask for shared storageRobin Appelman2016-12-021-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix post_unshareFromSelf hook parameter formatVincent Petry2016-12-021-0/+22
| | | | | | | | | | When unsharing from self in a group share situation, the share items passed to the post_unshareFromSelf hook were using the wrong format in which the attribute names (ex: "share_type") have non camel-case format. This fix makes sure that in group sharing case we use the correct format. It looks like the code was already producing it but in array_merge it was not using it and adding the unprocessed one.
* Fix testsRoeland Jago Douma2016-11-151-0/+55
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix fed share test call to return proper resultVincent Petry2016-09-261-6/+22
| | | | | | | | Fixes an issue where retrying a previously failed federated share would not properly reset the availability flag because the return value was undefined instead of "true". Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Allow increasing permissions for share ownerVincent Petry2016-09-131-0/+108
| | | | | | In some cases, the owner of the share is also recipient through a group share. The owner must still be able to increase permissions in that situation.
* Allow space for federated share id searchVincent Petry2016-08-301-0/+52
|
* Add files drop capability for clientsRoeland Jago Douma2016-08-151-0/+2
|
* Make share target consistent when grouping group share with user shareVincent Petry2016-08-041-4/+36
| | | | | | | | | | | | | | | | 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.
* Added more tests for sharing's MountProviderVincent Petry2016-08-041-0/+158
|
* Improved share grouping readability + fixed testVincent Petry2016-08-041-52/+47
|
* Run the license scriptJoas Schilling2016-07-2233-105/+142
|
* Add eventdispatcher to public link viewRoeland Jago Douma2016-07-181-1/+10
|
* Merge pull request #379 from nextcloud/create_federated_share_on_mountMorris Jobke2016-07-181-245/+0
|\ | | | | Create federated share on mount
| * move some stuff over to the federatedfilesharing appBjoern Schiessle2016-07-141-245/+0
| |
* | Fix PHPUnit 5.4 warnings in files_sharing testsRoeland Jago Douma2016-07-154-116/+116
|/
* Simplify test code and don't show anything if no date is setMorris Jobke2016-07-071-9/+3
|
* add unit testsMorris Jobke2016-07-071-3/+40
|
* Merge branch 'master' into sync-masterMorris Jobke2016-07-071-1/+27
|\
| * Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-272-12/+81
| |\
| * \ Merge remote-tracking branch 'upstream/master' into master-upstream-syncLukas Reschke2016-06-261-0/+136
| |\ \
| * \ \ Merge branch 'master' of https://github.com/owncloud/core into downstream-160611Arthur Schiwon2016-06-112-9/+53
| |\ \ \
| * | | | Add PHP unit testLukas Reschke2016-06-091-1/+25
| | | | |
| * | | | add hide file list optionBjoern Schiessle2016-06-091-0/+2
| | | | |
* | | | | fix swift primary object store test (#25281)Thomas Müller2016-07-051-0/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | Add explicit delete permission to link sharesVincent Petry2016-06-242-12/+81
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | fix broken unit test (#25198)Thomas Müller2016-06-211-1/+8
| | |
* | | Filter out group shares for owner where owner is included (#25190)Vincent Petry2016-06-211-0/+129
| |/ |/|
* | Extend unit testsRoeland Jago Douma2016-06-071-1/+33
| |
* | Fix unit testsRoeland Jago Douma2016-06-072-9/+21
|/
* Update license headersLukas Reschke2016-05-2628-24/+47
|
* Move tests to PSR-4Joas Schilling2016-05-2532-104/+118
|
* Move classes from outside lib/ to PSR-4Joas Schilling2016-05-251-1/+1
|
* Fix ShareControllerTest (#24824)Joas Schilling2016-05-251-1/+5
|
* use share initiator as fall back to access the fileBjörn Schießle2016-05-201-0/+2
| | | | | in case of federated re-shares the owner can be a remote user. Therefore we can't always use to owner to access the local file
* move request handler for federated shares to the federated sharing appBjörn Schießle2016-05-201-263/+0
|
* Fix more failuresJoas Schilling2016-05-192-2/+2
|
* Group fixup (#24621)Roeland Douma2016-05-171-1/+1
| | | | | | | | * Move used OC_Group_xx to \OC\Group * Add (deprecated) legacy wrapper in legacy, OC_Group_xx * Replace deprecated use of OC_Group_xx with \OC\Group\xx
* Fix test race conditionRoeland Jago Douma2016-05-111-1/+2
| | | | | | | | | | | | | | | | E-tag propagation replies on the mtime of the file. Order of events: 1. add file 'foo.txt' with content 'bar' 2. Set mtime to now() - 1 3. Check if etag changed. Now this goes right often when 1 and 2 happen in the same second. However imagine 1. add file 'foo.txt' with content 'bar' (at t=0.999) 2. Set mtime to now() - 1 (at t=1.001) Now the mtime will be set to the same time. Thus not chaning the etag.
* Add locking to modifying operation of the OCS Share APIRoeland Jago Douma2016-04-301-37/+156
| | | | | | | | | | Fixes #17243 This is done in the OCS Share API instead of the share manager since we want lazy shares in general. However when doing modifying calls via the OCS Share API it is fine to force real nodes. * Updated unit tests to work with logging
* Merge pull request #24027 from owncloud/translate_ocs_shareThomas Müller2016-04-262-33/+57
|\ | | | | Translate OCS Share API error messages
| * Translate OCS Share API error messagesRoeland Jago Douma2016-04-252-33/+57
| | | | | | | | For https://github.com/owncloud/core/issues/22209
* | Merge pull request #24073 from owncloud/move_federated_sharing_settings_to_appBjörn Schießle2016-04-252-2/+21
|\ \ | |/ |/| move federated sharing settings to the federatedfilesharing app
| * move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-222-2/+21
| |
* | Add unit tests for shared size propagation with encryptionRobin Appelman2016-04-212-14/+68
|/
* Merge pull request #23919 from owncloud/cyclyc-share-dep-exampleThomas Müller2016-04-2014-681/+656
|\ | | | | SharedStorage to new sharing code + cleanup
| * Fix testsRoeland Jago Douma2016-04-1914-681/+656
| |
* | Move the group dummy backend to testRoeland Jago Douma2016-04-191-1/+1
|/ | | | | The dummy backend is only used for testing and should thus reside in tests.
* apps: Fix typos (found by codespell) (#23862)Stefan Weil2016-04-121-1/+1
| | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix Share20OCSTestRoeland Jago Douma2016-04-081-4/+3
|
* Add capability to show if group sharing is enabledRoeland Jago Douma2016-04-041-0/+18
| | | | | | | fixes #23477 Now clients can correct wording to properly reflect who a user can share with.