summaryrefslogtreecommitdiffstats
path: root/tests/lib/share
Commit message (Collapse)AuthorAgeFilesLines
* Check for error when resharingRoeland Jago Douma2015-10-161-6/+23
|
* When sharing with the owner show the pathRoeland Jago Douma2015-10-161-0/+24
| | | | | The error message should contain the path that is being shared not the numeric id.
* Squash collection sharesRoeland Jago Douma2015-10-131-0/+56
| | | | | | | | | | | | If folder1 is shared to user2 and user3. And folder1/folder2 is shared to user4 and user5 then getting all the users with access to folder1/folder2 should only list user2 and user 3 once. Previously this was done twice since we request the info two times. This fix makes sure that we only append unique results to the array. * Added test
* test objectstore with ceph dockerJörn Friedrich Dreyer2015-10-061-0/+5
| | | | | | | | | | | | | | | | use default config for swift primary storage test config allow testsuite to complete fix timeout, script cleanup, enable debug for now use btrfs loopback device, requires privileged container and absolute path throw exception when storage has problems debug by echo ... sleep more, more debug
* Merge pull request #19577 from ↵Thomas Müller2015-10-061-0/+37
|\ | | | | | | | | owncloud/share-donotreturnentrieswhenusernotingroup Remove invalid share items from result when missing group membership
| * Remove invalid share items from result when missing group membershipVincent Petry2015-10-051-0/+37
| | | | | | | | | | | | | | | | | | Group shares usually have subshare entries for every user. In some situations it can happen that the user was removed from the group but the subshare entries still exist. This fix makes sure that such subshare entries are not returned any more as the user isn't in the group any more.
* | Add a unit test for "share a file inside a folder that is already shared"Joas Schilling2015-10-051-0/+33
|/
* Do not blindy copy expiration date on reshareRoeland Jago Douma2015-09-251-0/+37
| | | | | | | | | | If a file/folder is reshared we should not blindly copy the expiration date of the parent share. User/Group shares do not have expiration dates currently, and thus this is always set to null. Fixes #19119 * Added testcase
* Remove unnecessary DB prefixes from existing query builder usagesJoas Schilling2015-08-101-2/+2
|
* Remove pointless unit testThomas Müller2015-08-041-7/+0
|
* Merge pull request #17195 from rullzer/no_multiple_remote_shares_of_same_fileRoeland Douma2015-07-281-0/+36
|\ | | | | Remote shares should be uique
| * Added testRoeland Jago Douma2015-07-151-0/+36
| |
* | Fix existing usages by removing the quotesJoas Schilling2015-07-211-9/+9
| |
* | Add unit tests and automatic quotingJoas Schilling2015-07-211-8/+8
| |
* | Use the public interface and our method instead of the doctrine thingJoas Schilling2015-07-211-14/+14
| |
* | Merge pull request #17381 from owncloud/fix_sharing_add_to_groupMorris Jobke2015-07-211-0/+108
|\ \ | |/ |/| [sharing] fix addToGroup hook
| * intproduce pre_addToGroup hook. we need to calculate the possible uniqueBjoern Schiessle2015-07-061-0/+108
| | | | | | | | | | targets before the user was added to the group otherwise we will always detect a name collision
* | Remove OC_AppconfigThomas Müller2015-07-031-16/+16
|/
* Use \OC\HintException and translate the hintJoas Schilling2015-06-222-1/+30
|
* Merge spliteUserRemote with fixRemoteUrlInShareWithJoas Schilling2015-06-221-49/+31
|
* make sure that we split username and server address at the first '@' from ↵Bjoern Schiessle2015-06-221-0/+39
| | | | the right to allow usernames containing '@'
* Move the helpful method to the TestCase classJoas Schilling2015-06-031-1/+1
|
* Merge pull request #15772 from ↵Joas Schilling2015-05-041-0/+33
|\ | | | | | | | | owncloud/issue-15771-dont-restrict-permissions-for-share-owner Do not restrict permissions for the original owner
| * Add a test to share a subfolder of a folder shared with the owner by groupJoas Schilling2015-04-291-0/+33
| |
* | Merge pull request #15596 from owncloud/issue/15589Morris Jobke2015-04-291-2/+56
|\ \ | | | | | | Correctly generate the feedback URL for remote share
| * | Add tests for the correct share id on the call aswellJoas Schilling2015-04-281-5/+8
| | |
| * | make scrutinizer happyJoas Schilling2015-04-281-1/+1
| | |
| * | Add tests for the remote sharing urlJoas Schilling2015-04-281-2/+53
| |/
* / Added unit testRoeland Jago Douma2015-04-281-0/+46
|/
* Add "Reply-To" support to sharing mails and refactor codeLukas Reschke2015-04-101-0/+237
|
* only create a db entry for the user in case of a name conflict on group shareBjoern Schiessle2015-04-091-0/+7
|
* Fix unit testRoeland Jago Douma2015-03-301-0/+4
|
* OCS Fixes to allow setting of password without removing additional settingsRoeland Jago Douma2015-03-301-0/+230
| | | | | | - Added setPassword to share.php - Fixed OCS API call - Added unit tests
* Merge pull request #15155 from owncloud/share-donotreturntrashedfilesMorris Jobke2015-03-271-0/+40
|\ | | | | Do not return shares for files outside "files"
| * Add logout in share test to avoid nasty side effectsVincent Petry2015-03-271-0/+1
| |
| * Do not return shares for files outside "files"Vincent Petry2015-03-271-0/+39
| |
* | Merge pull request #13938 from owncloud/deprecate-iappconfigThomas Müller2015-03-271-4/+6
|\ \ | |/ |/| Deprecated \OCP\IAppConfig - add missing methods to IConfig
| * fix failing unit testMorris Jobke2015-03-171-4/+6
| |
* | Added unit testRoeland Jago Douma2015-03-191-0/+35
|/ | | | | Tests added to make sure that removing an expire date when this is enforced is not allowed.
* Merge pull request #13839 from ↵Morris Jobke2015-03-111-0/+51
|\ | | | | | | | | owncloud/issue/13678-improve-remote-domain-detection-in-sharedropdown Better finding the remote URL from user input in share dropdown
| * Extract the remote host from user input in share dropdownJoas Schilling2015-02-231-0/+51
| | | | | | | | Fix #13678
* | 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
| |