Commit graph

140 commits

Author SHA1 Message Date
Roeland Douma
411fac892a On mount make sure multiple shares with same target map to unique ones (#23937)
Scenario:
user0 shares a folder 'foo' with user2
user1 shares a folder 'foo' with user2
user2 logs in

Before: show only the 'foo' from user1

After: show both.

* Added intergration tests
2016-04-14 11:50:27 +02:00
Thomas Müller
3c0a1d4241 Merge pull request #20118 from owncloud/chunked-upload-dav
Initial implementation of the new chunked upload
2016-04-13 14:37:10 +02:00
Björn Schießle
499d131a09
always return the complete permissions the file was shared with 2016-04-12 17:56:56 +02:00
Roeland Jago Douma
629bc1812e Add intergration tests for new chunking
The same intergration tests as for the old endpoint.
But now using the new chunking.

We upload 3 chunks in different order and the result should be the same
in all three.
2016-04-12 12:33:05 +02:00
Roeland Jago Douma
ab034f0593 Add intergration tests 2016-04-04 19:35:01 +02:00
Roeland Jago Douma
8c0ef4c4bd Add sharePermissions webdav property
This property can be queries by the clients so they know the max
permissions they can use to share a file with. This will improve the UX.

The oc:permissions proptery is not enough since mountpoints have
different permissions (delete + move by default).

By making it a new property the clients can just request it. On older
servers it will just return a 404 for that property (and thus they know
they have to fall back to their hacky work arounds). But if the property
is returned the client can show proper info.

* unit tests
* intergration test
2016-03-31 20:12:34 +02:00
Roeland Jago Douma
6719f8ca60 Add intergration tests
* Only for sharees right now
* Sharing intergration tests fail due to the test setup we have right
  now
2016-03-22 17:13:34 +01:00
Roeland Jago Douma
85f363ba2c Add intergration tests
Intergration tests to ensure the share-types property is set correctly.

* Unshared item
* Shared with user
* Shared with group
* Shared by link
* Shared with user & group & link
2016-03-17 16:54:54 +01:00
Thomas Müller
8b5a1bbe3e Merge pull request #23258 from owncloud/sharee-tests
Add integration tests for sharee endpoint
2016-03-16 21:54:20 +01:00
Joas Schilling
cb56dfec6b Split the context so we don't reset the config on each test 2016-03-15 14:53:16 +01:00
Joas Schilling
c4b0a1cdfd Add tests for user enumeration and sharing in group only 2016-03-15 14:24:51 +01:00
Joas Schilling
4e9c3b3d64 Always use the admin when putting poeple in a group 2016-03-15 14:24:21 +01:00
Joas Schilling
8eb9638490 Make the app config code ready for reuse 2016-03-15 14:23:41 +01:00
Joas Schilling
928138f11c Deduplicate the existing background 2016-03-14 17:16:09 +01:00
Joas Schilling
f62a7b2447 Only match LOCAL and REMOTE as servers, correctly make use of the sharer server from the command 2016-03-14 10:55:52 +01:00
Thomas Müller
101e446577 Merge pull request #23091 from owncloud/issue-23085-csae-insensitive-group-search
Return the correct group casing in sharee api
2016-03-13 19:51:07 +01:00
Thomas Müller
c874ebf425 Merge pull request #23141 from owncloud/behat-code-style
Fix all the yellow, orange and red errors in integration tests
2016-03-11 14:56:44 +01:00
Joas Schilling
722188e503 Add integration tests for the "anti user iteration" 2016-03-11 14:15:09 +01:00
Joas Schilling
ab39be1d11 Add integration tests for sharee API 2016-03-11 14:08:12 +01:00
Joas Schilling
6d80efc2a4 Fix WebDav 2016-03-11 13:59:20 +01:00
Joas Schilling
6ff3d23b24 Fix docs of Tags 2016-03-11 13:59:19 +01:00
Joas Schilling
957a13d879 Remove unnecessary imports 2016-03-11 13:59:19 +01:00
Joas Schilling
d78357c210 Fix comments 2016-03-11 13:59:19 +01:00
Joas Schilling
c604046e3e Fix checksumsContext 2016-03-11 13:59:19 +01:00
Joas Schilling
2faf520504 Fix issues in CardDav 2016-03-11 13:59:19 +01:00
Joas Schilling
b4affa4d27 Add docs for CalDavContext 2016-03-11 13:59:19 +01:00
Joas Schilling
0f214017d2 Docs for BasicStructure 2016-03-11 13:59:19 +01:00
Joas Schilling
cdc5470f7e Fix the use of traits 2016-03-11 13:59:19 +01:00
Joas Schilling
26e974d859 Fix inheritance of members 2016-03-11 13:59:19 +01:00
Joas Schilling
62b77d8ed0 API version needs to be on basic because we use it there 2016-03-11 13:59:19 +01:00
Joas Schilling
5f7502de6c Fix type in class name 2016-03-11 13:59:19 +01:00
Joas Schilling
95a7518653 Remove hardcoded api versions 2016-03-11 13:59:19 +01:00
Joas Schilling
985b11876f asCreatingAShareWith has no return 2016-03-11 13:59:18 +01:00
Joas Schilling
9be7f4d19d Fix docs 2016-03-11 13:59:18 +01:00
Sergio Bertolín
44da5fe1ab Adding new tests for federation sharing 2016-03-11 08:49:26 +00:00
Roeland Jago Douma
ca2a24d286 Add intergration tests 2016-03-10 20:12:58 +01:00
Thomas Müller
0cc53ee06d Merge pull request #22602 from owncloud/fix_slow_chunkcheck
Do not check all chunks of a chunked upload if we do not need to
2016-03-09 15:06:44 +01:00
Roeland Jago Douma
0b4ff1a9e3 Fix capabilities intergration tests
Split the array element selection and the member selection.
2016-03-08 15:13:15 +01:00
Roeland Jago Douma
7301b43eb6 Added tests
* Unit tests for OC_Filechunking to verify the isComplete function
* Intergration tests to show that shuffling chunks is all fine
2016-03-07 21:20:13 +01:00
Lukas Reschke
947720b800 Adjust OCS test 2016-03-04 18:00:23 +01:00
Roeland Jago Douma
03d0fa012f Checksum intergration test
* Upload file with checksum
* Chunked upload with checksum
* Copy file with checksum should also copy the checksum
* Moving a file with checksum should also move the checksum
* Uploading a file with checksum and overwriting it with a file without cheksum should remove the checksum
2016-03-01 11:37:16 +01:00
Thomas Müller
1652541150 Merge pull request #22700 from owncloud/only_1_linkshare
For now only allow 1 link share per file/folder
2016-03-01 09:22:39 +01:00
Thomas Müller
25a4571dcd Merge pull request #22731 from owncloud/hide-nodes-from-listening
Hides nodes from listing that the user has no access to
2016-03-01 09:22:08 +01:00
Thomas Müller
fd4742d430 Merge pull request #22613 from owncloud/quota-changedavreturnvaluewhennoquotaset
Don't return quota when none set
2016-03-01 08:30:58 +01:00
Roeland Jago Douma
0dd0adf69f Intergration tests 2016-03-01 08:29:15 +01:00
Lukas Reschke
d04edfaf0d Hides nodes from listing that the user has no access to 2016-02-29 20:53:38 +01:00
Roeland Jago Douma
8924b0a0dc Check correct permissions when resharing
Fixes #22675

Since we only get a share id we do not know the path for the sharer.
Now if we edit a share we start searching for shares for that user of
that node. And deduce the permissions that way.

* Intergration test added
* Fix unit tests
2016-02-29 19:30:14 +01:00
Vincent Petry
11215f4e27 Return -3 for unlimited quota
Returns -3 for unlimited quota in Webdav response.
Also adjusted personal page to show unlimited quota when set.
2016-02-29 14:36:20 +01:00
Roeland Jago Douma
b116e80c56 Relax rootfolder check
* Updated unit tests
* Added intergration test
2016-02-26 16:05:32 +01:00
Thomas Müller
62d7885c3b Merge pull request #22660 from owncloud/fix_22656
Do not allow sharing of the users root folder
2016-02-26 10:49:12 +01:00