Commit Graph

180 Commits

Author SHA1 Message Date
Vincent Petry 2ca1301494
Add explicit delete permission to link shares
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.
2016-06-24 09:48:48 +02:00
Sergio Bertolín 491e2654eb Added test with new endpoint (#23934)
* Added test with new endpoint

* Moved all scenarios using new dav endpoint to a new feature file

* Removed extra slash in welcome.txt

* some fixes

* Incorrect user while downloading with range

* Fixed Content-disposition
2016-06-17 14:10:43 +02:00
Sergio Bertolín 19b7ae673a
Added unfavoriting tests and some rewording 2016-06-15 14:21:59 +02:00
Sergio Bertolín 4232458652
Fixing the tests 2016-06-15 14:21:59 +02:00
David Toledo 39a56c7bc1
Added favorites integration tests 2016-06-15 14:21:59 +02:00
Thomas Müller d0a2515e2b Us an explicit version of sabre/dav to allow caching on the jenkins slaves - fixes #25087 (#25088) 2016-06-14 09:53:30 +02:00
Stefan Weil f7c41fa4e6 Fix typo (found by codespell) (#25073)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-06-13 08:23:33 +02:00
Vincent Petry 1399e87d57
DAV now returns file name with Content-Disposition header
Fixes issue where Chrome would append ".txt" to XML files when
downloaded in the web UI
2016-06-09 15:51:41 +02:00
Sergio Bertolin 118050dcd0
Get a range from several chunks 2016-05-31 10:41:38 +02:00
Sergio Bertolin a7167409e7
Added another case about overwriting folder using old chunking 2016-05-31 10:41:38 +02:00
Sergio Bertolin dc05f979c2
Added same test using old chunking 2016-05-31 10:41:38 +02:00
Sergio Bertolin f2bf75d3b7
userUploadsChunkFileOfWithToWithChecksum has chunking-42 hardcoded 2016-05-31 10:41:38 +02:00
Sergio Bertolin a626aa21b1
add overwriting using chunking but failing 2016-05-31 10:41:38 +02:00
Sergio Bertolin c6a5a43009
Added tests about overwriting files and folders as recipient 2016-05-31 10:41:38 +02:00
Vincent Petry d288eb062e
Update integration tests for system tags with groups 2016-05-20 17:56:02 +02:00
Christoph Wurst 46bdf6ea2b
fix PHPDoc and other minor issues 2016-05-11 13:36:46 +02:00
Christoph Wurst bfed02b038
add auth integration tests 2016-05-11 13:36:46 +02:00
Christoph Wurst aa85edd224
increase token column width
add some range to time() assertions
2016-05-11 13:36:46 +02:00
Sergio Bertolin 661ab1a8c5
Modified expected output according to rullzer 2016-05-02 09:31:22 +02:00
Sergio Bertolín 271ba6da63
Added integration tests directly in the code PR 2016-05-02 09:31:22 +02:00
Thomas Müller 0eed6b5189
Integration test for a disabled user 2016-05-02 09:31:22 +02:00
Roeland Jago Douma 27c9d8a690
Not logged in is original calculated target 2016-04-30 10:40:45 +02:00
Thomas Müller 2ab4b1ce04 Merge pull request #23942 from owncloud/fix-behat
Use baseUrl as provided
2016-04-27 10:01:32 +02:00
Lukas Reschke 2625d8fc71 Merge pull request #23978 from owncloud/integration-test-remaining-from-qa-26
Added test case about downloading a file inside a folder with range
2016-04-16 23:34:53 +02:00
Lukas Reschke e2946f7b80 Merge pull request #24030 from owncloud/integration-tests-improved-resharing
Added test case for QA-94
2016-04-16 23:28:28 +02:00
Lukas Reschke 95e62180ce Merge pull request #23939 from owncloud/stricter-csp-for-dav-backend
Employ a stricter Content Security Policy on remote.php
2016-04-16 23:15:23 +02:00
Sergio Bertolin 5b34dcc099 Added test case for QA-94 2016-04-15 13:12:34 +00:00
Roeland Jago Douma 0cebb16e7c
Move share-permissions property namespace
Fixes https://github.com/owncloud/core/issues/23741
2016-04-15 10:22:18 +02:00
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
Sergio Bertolin ab40ec6494 Added test case about downloading a file inside a folder with range 2016-04-13 14:43:55 +00: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
Thomas Müller 68a92d36ec Use baseUrl as provided 2016-04-12 14:42:29 +02:00
Lukas Reschke 0cba1ba7f9
Employ a stricter Content Security Policy on remote.php
Items sent by remote.php have not to be interpreted by browsers in any way.
2016-04-12 13:30:37 +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