Commit Graph

322 Commits

Author SHA1 Message Date
Roeland Jago Douma 886341aca4 Merge pull request #2816 from nextcloud/changing_how_favorites_are_serialized
Return explicit values instead of boolean from sabre (#26654)
2016-12-23 14:36:05 +01:00
Sergio Bertolin aad088f3c0
Added phpdoc for getUserHome
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-23 12:25:20 +01:00
Sergio Bertolin d1b8e58c86
Using propfind instead of accessing the file system
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-23 12:25:20 +01:00
Sergio Bertolin 456d4fce1e
Changed data directory for work one
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-23 12:25:20 +01:00
Sergio Bertolin 4480dca3e3
Added support for homes which doesn't have user's name
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-23 12:25:19 +01:00
Sergio Bertolin b0a3b25724
Added functionaly for not shared elements
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:50:15 +01:00
Sergio Bertolin fbbd833ed1
Added more favorites report cases
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:50:07 +01:00
Sergio Bertolin e76732c03a
Added flexibility to properties
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:49:57 +01:00
Sergio Bertolin 02de82df91
Fixed failing problems
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:49:49 +01:00
Sergio Bertolin b78dcae1d4
WIP commit, adding report support
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:49:39 +01:00
Sergio Bertolín 928f113361
Return explicit values instead of boolean from sabre (#26654)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 10:10:29 +01:00
Lukas Reschke 591b60d11c Merge pull request #2758 from nextcloud/only-one-dav-backend
Register only one dav backend
2016-12-21 13:03:48 +01:00
Vincent Petry 322b8ba138
Fix finding transferred folder in integration tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 17:41:11 +01:00
Lukas Reschke 29a1ebc362
Adjust integration test to Nextcloud branding
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 16:12:17 +01:00
Vincent Petry 734e55da95
Add test for duplicate 401 headers on DAV
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 15:47:25 +01:00
Lukas Reschke 7b5c28ab2a
Adjust to Nextcloud changes
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 14:10:13 +01:00
Vincent Petry 55bf9e3f71
Add transfer ownership integration tests (#26543)
* Add transfer ownership integration tests

* Added more transfer ownership tests and OCC checks

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 14:10:12 +01:00
Vincent Petry 553883a1f4
Add integration test for creating folder with colon
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-16 18:16:35 +01:00
Lukas Reschke 5b474e72d5 Merge pull request #2673 from nextcloud/shared-scanner-unmasked
use unmasked permissions in shared scanner
2016-12-15 15:54:32 +01:00
Robin Appelman b8d44c21ca
Add integration tests for uploading files to a permission limited share
Signed-off-by: Robin Appelman <robin@icewind.nl>
2016-12-15 14:31:40 +01:00
Lukas Reschke 8a00638425
Don't set Content-Disposition header if one already exists
If a Content-Disposition header is already set by another plugin we don't need to set another one as this breaks clients.

Fixes https://github.com/nextcloud/server/issues/1992

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-14 17:35:27 +01:00
Joas Schilling b8e9d255d3
Only allow admins to delete tags
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-06 16:30:21 +01:00
Roeland Jago Douma 4630ff536e
Add intergration tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-12-02 13:17:53 +01:00
Morris Jobke 951f7f5eaf
Add integration test for web based installer
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-21 22:00:16 +01:00
Lukas Reschke d04ec9221c
Adjust integration test
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-21 11:30:02 +01:00
Roeland Jago Douma b27b690fa9
Add intergration test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-14 13:54:25 +01:00
Roeland Jago Douma 6a75296ccb Merge pull request #1792 from nextcloud/bump_sabre
Bump sabre
2016-11-09 13:06:52 +01:00
Thomas Müller c778b1bade
Update sabre dav to 3.2 (#26115)
* Update sabre/dav to 3.2.0

* Adjust code to work with sabre/dav 3.2.0 and it's dependencies

* Adding own CalDAV plugin to fix calendar home property

* Test if there is a user logged in when listing files home

* Update sabre version used by integration tests

* Disable unauthenticated DAV access

This is needed to make Sabre 3.2 behave like we did before.
Eventually we should integrate better with the ACL plugin which itself
should implement an auth failure when appropriate.

=====

* Fixed so cherry-pick was succesfull

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-04 13:35:10 +01:00
Roeland Jago Douma d5665eb93b
Add sleep function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-04 11:20:33 +01:00
Roeland Jago Douma bcd7a9a034
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-04 08:44:35 +01:00
Morris Jobke db65bc6fff
Remove unneeded behat method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-02 22:51:13 +01:00
Sergio Bertolin a642a40f3f
Adapted favorites and dav2 features
Adapted sharing and external features, random failures in sharing:857

Added weddav related feature

Removed forgotten leftovers
2016-11-02 22:49:44 +01:00
Morris Jobke ffebc050d0 Merge pull request #1887 from nextcloud/downstream-26370
Added functions to check etag of elements - integration tests
2016-11-02 14:57:45 +01:00
Roeland Jago Douma ea786a35a6
Fix intergration tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-02 08:49:58 +01:00
Sergio Bertolin 3135d3a7b2
Added test case about issue 26346 2016-11-02 08:49:58 +01:00
Sergio Bertolin 7d9e031abe
Changed description of variable 2016-11-02 08:49:58 +01:00
Sergio Bertolin a3c3ec9dd7
Added functions to check etag of elements 2016-11-02 08:49:57 +01:00
Bjoern Schiessle 6d7520b1e2
unit tests updated and new added
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2016-11-01 19:54:41 +01:00
Morris Jobke 8dcef4fb59
remove unneeded steps
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-21 10:03:48 +02:00
Sergio Bertolín 0417cbafd0
Changed request to not add a prefix to the url (#26256)
* Changed request to not add a prefix to the url

* Expecting forbidden instead of service unavailable

* Handling login exceptions
2016-10-20 17:21:08 +02:00
Sergio Bertolin f1c313b8bd
Added test for 26182 2016-10-10 13:48:14 +02:00
Sergio Bertolín 01393592eb
Adding type parameter because behat cannot ignore it
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-06 13:57:58 +02:00
Sergio Bertolín 7744cb5240
Orphaned shares test and some requirements
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-06 13:57:54 +02:00
Sergio Bertolin 09a90b4000
User was incorrect
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 08:19:43 +02:00
Sergio Bertolín d81f4ea53c
Modifications to avoid old dav path
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 08:19:43 +02:00
Sergio Bertolin 88b0af4211
Added failing tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 08:19:43 +02:00
Roeland Jago Douma 554d0c58c3
Fix size
Nextcloud has a letter (byte) more than ownCloud. So update test
2016-10-02 21:18:20 +02:00
Sergio Bertolin e011065a08
Added quota calculation test when a file is recieved
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-02 21:16:50 +02:00
Sergio Bertolin 7413e2a88c
Added test checking quota after usage
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-02 21:16:49 +02:00
Joas Schilling a1e4b17ff4
Remove unused endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-30 10:21:08 +02:00
Joas Schilling eb8886851f
Fix integration test to use a valid URL
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 12:00:02 +02:00
Roeland Jago Douma e392f669c0
Make OCS intergration tests check for CSP
* Very hacky in simple test but at least we test
2016-09-15 13:11:36 +02:00
Roeland Jago Douma 19ecacd57e
Add basic osc intergration tests 2016-09-07 13:04:21 +02:00
Roeland Jago Douma 581a83c2a1
Fix AppTest and intergration test 2016-09-05 09:42:58 +02:00
Lukas Reschke 84c742b95e
Use "testing" instead of "user_ldap" as test app 2016-08-31 10:40:17 +02:00
Sergio Bertolín 81c18f5aa7
Creating the folder when the tests run 2016-08-30 17:23:56 +02:00
Sergio Bertolín 86cfcde5e9
Changed enabled/disabled app in provisioning api tests 2016-08-30 17:23:49 +02:00
Sergio Bertolín 7106129baa
External storage was not enabled and content was not deleted before scenarios 2016-08-30 17:23:26 +02:00
Sergio Bertolín 3a5d29fb59
Added local_storage folder 2016-08-30 17:23:22 +02:00
Sergio Bertolin b7b0f4780c
Run as current user 2016-08-30 17:23:18 +02:00
Sergio Bertolin b154c8fa39
Removed extra context added needed option and remove storage after external storage scenarios 2016-08-30 17:23:13 +02:00
Sergio Bertolin 85f00e2c01
Added feature and context, not working yet, option to allow sharing needs to be added 2016-08-30 17:23:08 +02:00
Sergio Bertolin f72fea8d0e
Modified run.sh to mount a local storage 2016-08-30 17:23:04 +02:00
Sergio Bertolin c16b15d52e Added integration test 2016-08-29 14:13:26 +02:00
Roeland Jago Douma 77542817d1
Fix intergration tests
* Set OCS-APIREQUEST: true
* PUT requires a body
2016-08-14 18:34:07 +02:00
Roeland Jago Douma e7b515582a
Fix intergration test for admin_audit 2016-08-08 16:47:10 +02:00
Lukas Reschke 70eef2a82e Merge pull request #445 from nextcloud/ocs_share_to_appframework
OCS Share API to appframework
2016-08-08 14:59:59 +02:00
Roeland Jago Douma 774ff433d7
Disbale failing intergration test for now
I have not been able to reproduce this failure locally yet.
But it seems to happen often on CI.
So disable for now.
2016-08-05 15:29:10 +02:00
Roeland Jago Douma dd9f195afd
Add OCS-APIREQUEST header to intergration test calls 2016-08-05 14:17:32 +02:00
Vincent Petry 6d8d5f7bc5
Add integration tests for double shares with rename in between 2016-08-03 10:16:28 +02:00
Vincent Petry 573f6de6a0
Add integration tests for merging received shares 2016-08-03 10:16:28 +02:00
Roeland Jago Douma 1088870eb1
Add intergration test 2016-08-02 11:12:52 +02:00
Björn Schießle 6cf7bf111e Merge pull request #648 from nextcloud/add-quotaplugin-v2-master
[upstream] Adding quota plugin to new dav endpoint
2016-07-29 11:44:34 +02:00
Thomas Müller 6f34c37cfb
Adding quota plugin to new dav endpoint (#25615)
* Adding quota plugin to new dav endpoint

* Added integrated test failing in old endpoint

* Added 0B quota test
2016-07-29 10:03:46 +02:00
Morris Jobke 0529caee7c
Add some integration test fixes 2016-07-29 08:55:56 +02:00
enoch85 b7ce4e1686 ownCloud --> Nextcloud 2016-07-28 20:50:23 +02:00
Joas Schilling 96d466475c
Add app to provisioning output 2016-07-26 16:39:04 +02:00
Roeland Jago Douma 67ce87dca7
Fix intergration tests 2016-07-22 13:37:32 +02:00
Joas Schilling 0215b004da
Update with robin 2016-07-21 18:13:58 +02:00
Lukas Reschke ba4f12baa0
Implement brute force protection
Class Throttler implements the bruteforce protection for security actions in
Nextcloud.

It is working by logging invalid login attempts to the database and slowing
down all login attempts from the same subnet. The max delay is 30 seconds and
the starting delay are 200 milliseconds. (after the first failed login)
2016-07-20 22:08:56 +02:00
Joas Schilling 268e65730a
Add a new integration test for CREATE only shares 2016-07-14 14:33:28 +02:00
Joas Schilling f72f819086
Make sure the update was successful 2016-07-14 14:32:51 +02:00
Morris Jobke ba16fd0d33 Merge branch 'master' into sync-master 2016-07-07 11:29:46 +02:00
Vincent Petry 17297d4db1 Add integration test for sharing with group, then user in group
Add integration test for the use case where a group share exists and
then the same owner creates a direct share to a user in that group.
2016-07-05 11:16:39 +02:00
Thomas Pulzer 90b7f74da7 Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
Lukas Reschke b32b296ed7 Add integration tests 2016-06-30 12:21:01 +02:00
Morris Jobke b6397ef73a Merge pull request #236 from nextcloud/master-sync-upstream
[Master] sync upstream
2016-06-28 09:02:03 +02:00
Lukas Reschke 6670d37658 Merge remote-tracking branch 'upstream/master' into master-sync-upstream 2016-06-27 18:23:00 +02:00
Lukas Reschke b7e91c5c3a Adjust integration test
The app is now enabled by default
2016-06-27 10:26:23 +02:00
Vincent Petry 955635c7aa 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
Lukas Reschke 2b493e2f9d
Merge remote-tracking branch 'upstream/master' into master-sync-upstream 2016-06-21 11:18:22 +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
Morris Jobke 553bd71c9b
fix integration tests for new admin_audit app 2016-06-14 16:33:24 +02:00
Morris Jobke 859ca1f9bb
Add integration tests 2016-06-14 16:03: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