summaryrefslogtreecommitdiffstats
path: root/tests/lib/share
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for the post_shared hook shareTypeJoas Schilling2015-02-091-0/+11
|
* Do not retrieve shares through group if user has no groupVincent Petry2015-01-231-1/+26
|
* Fix reshare permission change to not impair other deletion codeVincent Petry2015-01-221-0/+47
| | | | | | | | | | | | | | A recent change that prevents reshare permission changes to delete group share children had the side-effect of also preventing group share children deletion when it needed to be done. This fix adds an extra flag to isolate the "reshare permission change" deletion case and keep the other ones as they were before, not only to fix the regression but also fix other potential regressions in code that uses this method. Also updated the comment because now Helper::delete() is no longer limited to reshares but also applies to group share children.
* Fix getItemSharedWithUser for groupsVincent Petry2015-01-161-0/+35
| | | | | | Fixed SQL query for whenever a user has more than one group. Added missing $owner where clause for group lookup. Added unit tests for the group cases.
* Next step in server-to-server sharing next generation, see #12285Bjoern Schiessle2014-12-192-0/+21
| | | | | | | | | | | | | | Beside some small improvements and bug fixes this will probably the final state for OC8. To test this you need to set up two ownCloud instances. Let's say: URL: myPC/firstOwnCloud user: user1 URL: myPC/secondOwnCloud user: user2 Now user1 can share a file with user2 by entering the username and the URL to the second ownCloud to the share-drop-down, in this case "user2@myPC/secondOwnCloud". The next time user2 login he will get a notification that he received a server-to-server share with the option to accept/decline it. If he accept it the share will be mounted. In both cases a event will be send back to user1 and add a notification to the activity stream that the share was accepted/declined. If user1 decides to unshare the file again from user2 the share will automatically be removed from the second ownCloud server and user2 will see a notification in his activity stream that user1@myPC/firstOwnCloud has unshared the file/folder from him.
* Move share interfaces to own files so they can be autoloadedJoas Schilling2014-11-271-2/+0
|
* Merge pull request #12350 from mprokop/link_expirationMorris Jobke2014-11-261-4/+2
|\ | | | | fix calculation of expiration date if there is a default expiration date...
| * Consolidate if statement, and update unit testMiguel Prokop2014-11-211-4/+2
| |
* | Replace deprecated constant with new class constantJoas Schilling2014-11-251-70/+70
| |
* | also check for the correct owner if it was submittedBjoern Schiessle2014-11-211-0/+44
|/
* Make remaining files extend the test baseJoas Schilling2014-11-193-3/+5
|
* use the new base class for unit testsBjoern Schiessle2014-11-181-10/+12
|
* make sure that we don't find the wrong shares if a user and a group have the ↵Bjoern Schiessle2014-11-181-0/+41
| | | | same ID
* Add option to include tags for shared items.Bernhard Reiter2014-10-141-1/+2
|
* fix unit testsBjoern Schiessle2014-09-242-5/+22
|
* unit tests for grouping of shares pointing to the same sourceBjoern Schiessle2014-09-221-12/+80
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-3/+3
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* Merge pull request #9915 from suraia/unsharefromself-sourceBjörn Schießle2014-08-271-0/+24
|\ | | | | Allow specifying the item source in unshareFromSelf().
| * Add unit tests for new unshareFromSelf() functionality.Michael Kuhn2014-08-231-0/+24
| |
* | Merge pull request #9970 from owncloud/sharing_set_expire_dateMorris Jobke2014-07-301-0/+26
|\ \ | | | | | | Sharing set expire date
| * | add unit testBjoern Schiessle2014-07-281-0/+26
| | |
* | | remove share permission if user is excluded from sharingBjoern Schiessle2014-07-291-0/+33
|/ /
* / add OCS api call to set expire date for link sharesBjoern Schiessle2014-07-251-11/+37
|/
* only expire link sharesBjoern Schiessle2014-06-061-59/+18
|
* unify share settingsBjoern Schiessle2014-06-051-3/+3
|
* add setting to set default expire dateBjoern Schiessle2014-04-241-0/+54
|
* always return an arrayBjoern Schiessle2014-03-251-6/+6
|
* fix sharing unit testsBjoern Schiessle2014-02-212-7/+7
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-0/+7
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* intendationArthur Schiwon2014-02-111-5/+5
|
* Inject loggerArthur Schiwon2014-02-111-0/+7
|
* test for share dialoge sorterArthur Schiwon2014-02-111-0/+40
|
* fixing comment + adding unit test for checkPasswordProtectedShareThomas Müller2014-01-211-0/+42
|
* updated the unit test for OCP\Share::unshareAll() to verify that shares by ↵ben-denham2014-01-101-4/+54
| | | | all users are removed for an item.
* Add tests for OCP\Share::unshareAll().Andreas Fischer2013-11-031-10/+33
|
* Tests whether expired/valid link share is still accessible.Andreas Fischer2013-09-161-0/+48
|
* Calculate dateInPast and dateInFuture.Andreas Fischer2013-09-121-5/+8
|
* Add comment explaining how $dateInFuture was picked.Andreas Fischer2013-09-121-0/+2
|
* Coding style: { for methods start are supposed to be on the same line.Andreas Fischer2013-09-121-12/+6
|
* Expiration tests for sharing with groups.Andreas Fischer2013-09-121-6/+76
|
* Do not repeat shareUserOneTestFileWithUserTwo() code.Andreas Fischer2013-09-121-25/+22
|
* Make dates test class properties.Andreas Fischer2013-09-121-2/+5
|
* Try to make Oracle happy by also specifying seconds.Andreas Fischer2013-09-121-2/+2
|
* Test whether a still-valid user share is still accessible.Andreas Fischer2013-09-121-11/+34
|
* Test whether an expired user share is still accessible.Andreas Fischer2013-09-121-0/+33
|
* Check resharing settingMichael Gapczynski2013-02-261-1/+4
|
* drop SimpleTest compatibilityThomas Mueller2013-01-241-1/+1
|
* Rename install hook functions to register hookBart Visscher2012-11-151-1/+1
|
* Create functions to install standard hooksBart Visscher2012-11-131-0/+2
| | | | | Also use these in tests that needs them Fix #151
* Update all to use OCP\PERMISSION_* instead of OCP\Share::PERMISSION_*Thomas Tanghus2012-11-111-73/+73
|