Joas Schilling
107b418815
Fix MissingMandatoryParametersException for share notifications
...
The routing system is non-forgiving
2016-09-13 14:09:34 +02:00
Bjoern Schiessle
7d183a28d2
skip shared files, if files get decrypted only for a specific user we shouldn't touch files owned by a different user.
2016-09-09 14:55:46 +02:00
Lukas Reschke
2ae08d6fc2
Match only for actual session cookie
...
OVH has implemented load balancing in a very questionable way where the reverse proxy actually internally adds some cookies which would trigger a security exception. To work around this, this change only checks for the session cookie.
2016-09-08 21:07:05 +02:00
Morris Jobke
520bfa872b
Merge pull request #1324 from nextcloud/backport-1323-show-download-button-for-updates-atm
...
[stable10] Show an download button instead of the updater
2016-09-08 15:41:45 +02:00
Joas Schilling
280a452055
Change updater URL
2016-09-08 12:29:37 +02:00
Joas Schilling
810f99c1c9
Correctly remove the charset from finfo mimetype
2016-09-08 09:20:34 +02:00
Morris Jobke
17dc2c344f
fix tests
2016-09-07 19:58:20 +02:00
Joas Schilling
7d54d03e40
Allow downgrades of maintenance accross vendors
2016-08-30 10:19:40 +02:00
Lukas Reschke
4fb2810add
Remove reading PATH_INFO from server variable
...
Having two code paths for this is unreliable and can lead to bugs. Also, in some cases Apache isn't setting the PATH_INFO variable when mod_rewrite is used.
Fixes https://github.com/nextcloud/server/issues/983
2016-08-27 22:16:30 +02:00
Lukas Reschke
805fc22276
Merge pull request #1008 from nextcloud/shared-storage-non-recursive-10
...
[10] Fix shared storage recursive setup
2016-08-23 22:15:21 +02:00
Robin Appelman
fa980af53c
prevent infinite recursion while getting storage from mount
2016-08-23 13:59:01 +02:00
Arthur Schiwon
ff2f5ecbf7
Backport Workflow section + hidden empty sections #995 to stabble10
...
add section to worklfowengine
enlist only registered sections that also have settings registered to
adjust test
Move admin settings to workflow section
fix wrong var name
Save the container with the app's namespace so we can resolve it
2016-08-22 16:37:48 +02:00
blizzz
379260732c
Merge pull request #918 from nextcloud/stable10_891
...
[Stable10] [OC] Fix unmerged shares repair targetdecision
2016-08-22 12:09:27 +02:00
Julius Haertl
fe15940233
Fix loading of ThemingDefaults
2016-08-19 11:29:58 +02:00
Joas Schilling
e1ec3964c8
Make sure the primary action is always the first one
2016-08-18 09:27:14 +02:00
Vincent Petry
11e9ce669a
Improve regexp to detect duplicate folders when repairing unmerged shares
2016-08-17 19:39:08 +02:00
Vincent Petry
c1ad88a777
Fix unmerged shares repair with mixed group and direct shares
...
Whenever a group share is created after a direct share, the stime order
needs to be properly considered in the repair routine, considering that
the direct user share is appended to the $subShares array and breaking
its order.
2016-08-17 19:38:33 +02:00
Vincent Petry
837dc0b336
Improve file_target finding logic when repairing unmerged shares
...
Pick the most recent subshare that has no parenthesis from duplication
which should match whichever name the user picked last. If all
subshares have duplicate parenthesis names, use the least recent group
share's target instead.
2016-08-17 19:38:19 +02:00
Lukas Reschke
1f177aa105
Use getMockBuilder instead of createMock
2016-08-16 21:36:59 +02:00
Lukas Reschke
6ed721dde3
Rename class reference
...
File has been renamed only on master
2016-08-16 21:28:26 +02:00
Arthur Schiwon
f4aa676cb0
adjust tests to latest changes
2016-08-16 21:11:29 +02:00
Lukas Reschke
436e6c1078
Use MockBuilder instead of createMock
...
CI uses an older PHPUnit
2016-08-16 21:10:47 +02:00
Lukas Reschke
687f5bee94
Add unit tests
2016-08-16 21:10:41 +02:00
Lukas Reschke
737591f239
Merge pull request #858 from nextcloud/stable10-when-logged-in-then-just-redirect-to-redirected-page
...
[stable10] when logged in then just redirect to redirected page
2016-08-16 18:13:24 +02:00
Roeland Jago Douma
a8ba573ba9
We have to mock the is_uploaded_file in the OC\Core\Controller namespace
2016-08-15 20:09:48 +02:00
Roeland Jago Douma
b860fa7125
Fix mock call in AvatarControllerTest
2016-08-15 20:09:37 +02:00
Lukas Reschke
5e9c7d3ff3
Use generated URL
2016-08-15 19:26:24 +02:00
Lukas Reschke
81467f7c4e
Fix CheckSetupController tests
2016-08-15 17:55:36 +02:00
Lukas Reschke
ab9a8ce952
Fix tests for LoginController
2016-08-15 17:52:54 +02:00
Lukas Reschke
349f5e4a60
Fix template test
2016-08-15 17:48:58 +02:00
Lukas Reschke
18388a01f5
Add reference to current user
2016-08-15 17:48:55 +02:00
Lukas Reschke
db34a8c861
Use proper casing
2016-08-15 17:48:45 +02:00
Lukas Reschke
9ac6b83687
Use createMock instead of deprecated getMock
2016-08-13 21:04:16 +02:00
Lukas Reschke
be1e64486f
Redirect users when already logged-in on login form
2016-08-13 21:04:10 +02:00
Lukas Reschke
93677b2ca3
Merge pull request #817 from nextcloud/jail-root-stable10
...
[stable10] getJailedPath expects $path to have a trailing /
2016-08-10 16:04:13 +02:00
Roeland Jago Douma
a54f9c6aef
OCSController requires DataResponse
...
The OCS Controller requires a DataResponse object to be returned.
This means that all error handling will have to be done via exceptions
thrown and handling in the middleware.
2016-08-10 13:09:01 +02:00
Thomas Müller
2e0e2064e8
Adding test case for getPathById including a jailed cache where root is just empty
2016-08-10 11:29:11 +02:00
Björn Schießle
7321baa108
Merge pull request #713 from nextcloud/stable10_474
...
[Stable 10] Group shares with same source and target
2016-08-08 10:55:26 +02:00
Joas Schilling
9bc13eb7eb
Translate the server version for nextcloud
2016-08-06 10:42:26 +02:00
Vincent Petry
21907c4f3e
Fix RepairUnmergedShares to not skip valid repair cases
...
The repair step was a bit overeager to skip repairing so it missed the
case where a group share exists without subshares but with an
additional direct user share.
2016-08-04 19:50:16 +02:00
Vincent Petry
6638e1857a
Add repair step for unmerged shares (WIP)
2016-08-04 19:50:16 +02:00
Joas Schilling
713e201074
Merge pull request #602 from nextcloud/backport-workflow-engine
...
🚧 [WIP] Backport workflow engine 🚧
2016-08-04 14:20:14 +02:00
Roeland Jago Douma
6990a4e550
Support subdir in the OCS v2 endpoint
...
We should check against the ending substring since people could
run their nextcloud in a subfolder.
* Added test
2016-07-28 13:12:01 +02:00
Morris Jobke
01ec62e3d2
fix enabled apps tests
2016-07-27 14:11:53 +02:00
Morris Jobke
b2e4a8c0d3
fix unit tests
2016-07-27 14:11:46 +02:00
Morris Jobke
bc6c05afb6
Add workflowengine
2016-07-27 14:10:43 +02:00
Lukas Reschke
c385423d10
Merge pull request #479 from nextcloud/add-bruteforce-throttler
...
Implement brute force protection
2016-07-21 00:31:02 +02:00
Lukas Reschke
c1589f163c
Mitigate race condition
2016-07-20 23:09:27 +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
Lukas Reschke
020a2a6958
Merge pull request #476 from nextcloud/port-same-site-cookies
...
[master] Port Same-Site Cookies to master
2016-07-20 21:35:02 +02:00